How to make Generic Functions that accept a value or an object with certain properties in TypeScript?
Originally Published Here ๐!
To make generic functions that accept a value or an object as a parameter but with certain properties, you have to use the extends keyword on the generic type parameter and add some constraints on the generic type parame...
melvingeorge-me.hashnode.dev4 min read