DEV Community

Discussion on: Understanding Generics in TypeScript

Collapse
 
folken718 profile image
OldMan Montoya

Think consuming an API, you can get different types of responses, here generics are gold , because you create the function to consume once using generics and you just specify the type when you use it

Collapse
 
murkrage profile image
Mike Ekkel

That's a very good point :)