Implementing the main GoF patterns in typescript
yarn build
yarn build:watch
yarn test
yarn test:watch
yarn view:coverage
yarn clean
yarn start
The abstract factory pattern is a design pattern that allows for the creation of groups of related objects without the requirement of specifying the exact concrete classes that will be used. One of a number of factory classes generates the object sets. font: http://www.blackwasp.co.uk/AbstractFactory.aspx
The factory method pattern is a design pattern that allows for the creation of objects without specifying the type of object that is to be created in code. A factory class contains a method that allows determination of the created type at run-time. font: http://www.blackwasp.co.uk/FactoryMethod.aspx
The singleton pattern is a design pattern that is used to ensure that a class can only have one concurrent instance. Whenever additional objects of a singleton class are required, the previously created, single instance is provided. font: http://www.blackwasp.co.uk/Singleton.aspx