Design Pattern: Template Method Pattern in TypeScript

In Template Method pattern we have some abstract methods(or methods with default implementation), and the actual implementation is done in the subclasses. This is used when there are similar algorithms, but with different steps in implementation. This article demonstrates Template Method pattern implementations in TypeScript.

Design Pattern: Memento Pattern in TypeScript

Memento pattern maintains a list of state changes performed on an object. This way, we can revert back and can go back to any point of object state history. The internal state is encapsulated inside the object, and the undo process does not need to be aware of it. This article demonstrates Memento pattern implementations in TypeScript.