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

    Function build

    • Create a one-off type token from a factory function.

      Type Parameters

      • Value

      Parameters

      • factory: (...args: []) => Value

      Returns Type<Value>

      class Wizard {
      wand = inject(
      build(() => {
      const wand = inject(Wand);
      wand.owner = this;
      // ...
      return wand;
      }),
      );
      }

      @NO_SIDE_EFFECTS