J
J
JavaSscriptNoob2021-11-20 21:53:05
typescript
JavaSscriptNoob, 2021-11-20 21:53:05

What does such an entry in TS mean?

function identity<T>(arg: T): T {
  return arg;
}
let myIdentity: <U>(arg: U) => U = identity;

What does such a record mean, can we say that we check that the second function corresponds to the first?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-11-20
@JavaSscriptNoob

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 question

Ask a Question

731 491 924 answers to any question