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

    Function Scoped

    • Class decorator for setting the scope of the decorated type when registering it.

      The scope set by this decorator can be overridden by explicit registration options, if provided.

      Parameters

      Returns ClassDecorator

      @Scoped(Scope.Container)
      class Wizard {}

      container.register(Wizard);

      // Under the hood
      container.register(
      Wizard,
      { useClass: Wizard },
      { scope: Scope.Container },
      );

      @NO_SIDE_EFFECTS