What is the best and most convenient way to implement a Singleton pattern for a class in TypeScript? (Both with and without lazy initialisation).
This is a typescript decorator checking if multiple instances were accidentaly created against a service class that is designed to be singleton:
https://www.npmjs.com/package/singleton-checker