- Published on
The two kinds of Generics for Functions - Advanced TypeScript Tutorial
- Authors
- Name
- Lucas Floriani
- @lucasfloriani13
The two kinds of Generics for Functions - Advanced TypeScript Tutorial
The two kinds of Generics for Functions - Advanced TypeScript Tutorial
Didn't understand that well, its a small difference between them, but I think that with a specific approach we almost can get the same result.
Probably the difference is that A you can say what is the type you will be using, and B you can only restrict with an extends.