• Register a class as injectable component into the application container. Each injectable class has a default lifecycle policy which determines if a new class is instantiated per resolution (transient) or if the same instance is reused across resolutions (singleton).

    If no lifecycle policy is specified, the default is singleton.

    Type Parameters

    • T extends (new (...args) => InstanceType<T>)

    Parameters

    Returns ((ctor) => any)

      • (ctor): any
      • Parameters

        • ctor: T

        Returns any