Design Patterns In TypeScript — Singleton
How to restrict the instantiation of a class to one object
Published in
2 min readJun 6, 2021
Singleton is one of the most used design patterns in software development. In this post, we will learn how to implement this pattern in the context of web development using TypeScript.