Generics can help us create well defined classes, interfaces, and functions while still giving us the flexibility of keeping them “generic”- by making them work according to a passed type (or types) by the programmer. You can follow along over at Typescript playground, if you do not have any local environment set up.
Table of contents
Generics with constraints1 Impression1 Comment