Properties

bindingsByConstructor: Collection<AnyConstructor<any[]>, Binding<AnyConstructor<any[]>>> = ...
bindingsByName: Collection<string, Binding<AnyConstructor<any[]>>> = ...
Inject: (<R>(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

  • Resolve the properties of a class.

    Type Parameters

    Parameters

    • value: T

      The constructor to resolve the properties of.

    • Optionalinstance: InstanceType<T>

      The instance to resolve the properties of.

    Returns InstanceType<T>

""