News

Generic classes and functions are one way to create flexible, reusable classes and functions. But before you start creating your own generic functions, you should be clear on when they’re your best ...
TypeScript lets you create factory functions that ensure a specific class is created correctly. But, if you also leverage generics and interfaces, these factory functions can work with a variety of ...