Design patterns in TypeScript that actually paid off: strategy, adapter and DI
We stopped adding patterns because a book listed them and kept only the three that removed real pain from a Node.js billing service: strategy for pricing rules, adapter for payment providers and plain constructor injection. Here is the before and after code.