Not a pure singleton (initialization may be not lazy), but similar pattern with help of namespace
s.
namespace MyClass
{
class _MyClass
{
...
}
export const instance: _MyClass = new _MyClass();
}
Access to object of Singleton:
MyClass.instance