Answer the question
In order to leave comments, you need to log in
What does such an entry in TS mean?
function identity<T>(arg: T): T {
return arg;
}
let myIdentity: <U>(arg: U) => U = identity;
Answer the question
In order to leave comments, you need to log in
No, nothing is checked here.
Simply the identity function is assigned to the variable myIdentity
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question