@lppedd/di-wise-neo - v0.19.0
    Preparing search index...

    Function InjectAll

    • Parameter decorator that injects all instances provided by the registrations associated with the given class.

      Throws an error if:

      • The class is not registered in the container.
      • A circular dependency is detected.

      Type Parameters

      • Instance extends object

      Parameters

      Returns ParameterDecorator

    • Parameter decorator that injects all values provided by the registrations associated with the given token.

      Throws an error if:

      • The token is not registered in the container.
      • A circular dependency is detected.

      Type Parameters

      • Value

      Parameters

      Returns ParameterDecorator

    • Parameter decorator that injects all values provided by the registrations associated with the given token.

      Allows referencing a token declared later in the file by using the tokenRef helper function.

      Throws an error if:

      • The token is not registered in the container.
      • A circular dependency is detected.

      Type Parameters

      • Value

      Parameters

      Returns ParameterDecorator

      class Wizard {
      constructor(@InjectAll(tokenRef(() => Wand)) readonly wands: Wand[]) {}
      }
      // Other code...
      class Wand {}