/design-patterns-in-typescript

Design pattern implementations in TypeScript

Primary LanguageTypeScript

Design patterns in TypeScript

Design patterns implementations in TypeScript

Creational

Creational patterns are ones that create objects for you, rather than having you instantiate objects directly.

  • Builder: separate the construction of a complex object from its representation. By doing so the same construction process can create different representations.
  • Abstract Factory: provide an interface for creating families of related or dependent objects without specifying their concrete classes.
  • Factory Method: defines an interface to create an object, but it allows the subclasses to decide that instance class.