Function InjectBean

  • Gets singleton instance by its static property

    Type Parameters

    • T

    Parameters

    • singletonClass: T

    Returns ((_value, context) => (() => any))

      • (_value, context): (() => any)
      • Parameters

        • _value: any
        • context: ClassFieldDecoratorContext<unknown, unknown>

        Returns (() => any)

          • (): any
          • Returns any

    Decorator