Design Pattern: Singleton Pattern in TypeScript

Singleton pattern generates and returns the same single instance of a class, in any case. No matter how we generate the instance and how many times we generate it, the same single instance will be returned. This article discusses the Singleton pattern implementation in TypeScript.

Design Pattern: Factory Pattern in TypeScript

Factory pattern is used when we don’t want to instantiate objects directly, instead, we want to generate the instance(s) based on some criteria. The factory is responsible for generating the objects. This article demonstrates Factory pattern implementations in TypeScript.

Design Pattern: Builder Pattern in TypeScript

Builder pattern simplifies the object-building process by keeping the object creation and usage process separate. Also helpful in the case when the item class has a lot of properties, by setting the properties step by step. This article demonstrates Builder pattern implementations in TypeScript.

Design Pattern: Prototype Pattern in TypeScript

Prototype pattern use the existing object, to create a new object(of the same type), by cloning the existing object. This process will reduce resource usage, and makes object creation easier. This article demonstrates Prototype pattern implementations in TypeScript.

Design Pattern: Adapter Pattern in TypeScript

Adapter pattern is used to create a bridge between two incompatible interfaces. Due to some change in the system, or new implementation if we need to enable any existing interface to use the new interface. In that case Adapter pattern can help. This article is about Adapter pattern implementations in TypeScript.

Design Pattern: Bridge Pattern in TypeScript

Bridge pattern implementation separates the Abstraction and implementation. That way we can switch the implementation at runtime and use the implementation flexibly. This article is about Bridge pattern implementation in TypeScript.

Design Pattern: Composite Pattern in TypeScript

Compsite pattern enables a single object and a list of objects to operate the same way. That way the client does not need to know if it is using a single object or a list, while using it. So the usage becomes simple in that case. This article describes Composite pattern implementation in TypeScript.

Design Pattern: Decorator Pattern in TypeScript

Decorator pattern adds new functionality to existing implementation, without changing the existing implementation. The additional functionality is added to individual objects (not to the entire class). This article demonstrates Decorator pattern implementations in TypeScript.

Design Pattern: Facade Pattern in TypeScript

Facade adds a new layer around a bunch of subsystems, and wraps those. Clients interact with the Facade, and are not aware of the systems. This article demonstrates Facade pattern implementations in TypeScript.