Interface InjectableMetadata<T>

interface InjectableMetadata<T> {
    constructorArgs?: ReflectMetadataType[];
    eager?: boolean;
    factory?: ((id, container?) => any);
    id: Identifier<unknown>;
    properties?: ReflectMetadataType[];
    scope: ScopeEnum;
    scopeEscape?: boolean;
    type?: null | Constructable<T>;
    value?: unknown;
}

Type Parameters

  • T = any

Hierarchy (view full)

Properties

constructorArgs?: ReflectMetadataType[]
eager?: boolean

Indicates whether a new instance should be created as soon as the class is registered. By default the registered classes are only instantiated when they are requested from the container.

factory?: ((id, container?) => any)

Type declaration

id: Identifier<unknown>
properties?: ReflectMetadataType[]
scope: ScopeEnum
scopeEscape?: boolean
type?: null | Constructable<T>
value?: unknown