Class TypeDiDependencyRegistryEngine

Interface to facilitate the ability to add custom IOC containers by conforming to the proxy of adding and retrieval of services

Hierarchy (View Summary)

Constructors

Properties

_serviceSet: Set<unknown> = ...
injector: undefined | typeof Container
useToken: boolean = false
token: Token<unknown> = ...

Accessors

Methods

  • Parameters

    • service: {
          <T = unknown>(): Function;
          <T = unknown>(name: string): Function;
          <T = unknown>(token: Token<unknown>): Function;
          <T = unknown>(options?: ServiceOptions<T>): Function;
      }
        • <T = unknown>(): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Returns Function

        • <T = unknown>(name: string): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Parameters

          • name: string

          Returns Function

        • <T = unknown>(token: Token<unknown>): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Parameters

          • token: Token<unknown>

          Returns Function

        • <T = unknown>(options?: ServiceOptions<T>): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Parameters

          • Optionaloptions: ServiceOptions<T>

          Returns Function

    Returns this