@lppedd/di-wise-neo - v0.19.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.

      Type Parameters

      • This extends object

      Parameters

      Returns ClassDecorator<This>

      @Scoped("Container")
      class Wizard {}

      container.register(Wizard);

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

      @NO_SIDE_EFFECTS