Design Patterns In TypeScript — Singleton

How to restrict the instantiation of a class to one object

Cesar William Alvarenga
Level Up Coding
Published in
2 min readJun 6, 2021

--

Photo made with Canva.

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.

What is Singleton?

--

--