Title: TypeScript 4 Design Patterns and Best Practices