Bridge : Design Patterns in TypeScript
Design Patterns In TypeScript (book)
https://www.amazon.com/dp/B0948BCH24 : ASIN B0948BCH24
https://www.amazon.com/dp/B094716FD6 : ASIN B094716FD6
Documentation : https://sbcode.net/typescript/bridge/
The Bridge pattern is a process about separating abstraction and implementation, so this will allow you more ways of using your classes.
A Bridge didn't exist before, but since after the separation of interface and logic, each side can be extended independently of each other.
The Bridge pattern should use composition instead of inheritance. This means that you assign the relationship when the object is created at runtime rather than hard coded in the class definition or constructor.
#bridgePattern
#typescriptBridge
#bridgePatternTypescript