Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Singleton<T, ConfigType, LoggerType>

A class that provides access to a singleton. We assume that any such singleton is always constructed with two arguments: An arbitrary configuration object and a logger. Instances of this type should only be constructed in module scope.

Type parameters

  • T

  • ConfigType

  • LoggerType

Hierarchy

  • Singleton

Index

Constructors

Methods

Constructors

constructor

Methods

create

  • create(config: Forceable<ConfigType>, logger: LoggerType): T

exists

  • exists(): boolean

get

  • get(): T

Generated using TypeDoc