Reputation: 10230
I was going throgh the flow documentation ( HERE ) and came across the following lines of code:
function identity<T>(value: T): T {
return value;
}
The above code is used to illustrate an example for A type based on another type. I don't quite understand the usage and how would this be practically applicable, can somebody please shed some light on this with a practical/real life example.
Upvotes: 0
Views: 48