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

    Function Injectable

    @NO_SIDE_EFFECTS

    • Class decorator that registers additional aliasing tokens for the decorated type, when the type is first registered in the container.

      The container uses ExistingProvider under the hood.

      Type Parameters

      • This extends object
      • Value extends object

      Parameters

      Returns ClassDecorator

      @Injectable(Weapon)
      class Wand {}
    • Class decorator that registers additional aliasing tokens for the decorated type, when the type is first registered in the container.

      The container uses ExistingProvider under the hood.

      Allows referencing tokens that are declared later in the file by using the forwardRef helper function.

      Type Parameters

      • This extends object
      • Value extends object

      Parameters

      Returns ClassDecorator

      @Injectable(forwardRef() => Weapon) // Weapon is declared after Wand
      class Wizard {}
      // Other code...
      class Weapon {}