Published on

The two kinds of Generics for Functions - Advanced TypeScript Tutorial

Authors

The two kinds of Generics for Functions - Advanced TypeScript Tutorial

The two kinds of Generics for Functions - Advanced TypeScript Tutorial

Fallback text 1

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.