Type alias Provide<K, V>

Provide<K, V>: (abstract new (...args) => InstanceType<V>) & {
    [provide]: K extends Registration
        ? K
        : Registration;
}

Type helper enforcing the provide symbol property to contain a magic string (typed as Registration) on base constructors decorated with the corresponding Provide decorator. The Provide type helper is also used by the Provider decorator.

Type Parameters

Type declaration

Type declaration

  • Readonly [provide]: K extends Registration
        ? K
        : Registration

    Enforced contract. This provide symbol property must be typed as Registration and assigned a magic string used by the Provider to lookup the providing class.

Generated using TypeDoc