Function Singleton

  • Class decorator that registers the class as a singleton instance in the global container.

    Parameters

    • Optional name: string

    Returns ClassDecorator