Properties

bindingsByConstructor: Collection<
    AnyConstructor<any[]>,
    Binding<AnyConstructor<any[]>>,
> = ...
bindingsByName: Collection<string, Binding<AnyConstructor<any[]>>> = ...
Inject: <R extends AnyConstructor>(
    ref?: string | R,
) => (
    target: object,
    key: string | symbol,
    _descriptor?: PropertyDescriptor,
) => void = Inject

Methods

  • Automatically create an instance of a class.

    Type Parameters

    Parameters

    • value: T

      The constructor to create an instance of.

    • Optionalargs: ConstructorParameters<T>
    • singleton: boolean = true

    Returns InstanceType<T>

    9.0.0

MMNEPVFCICPMFPCPTTAAATR