Skip to content

TypeScript 高级测验

泛型、条件类型、映射类型、工具类型和推断。

advanced
Question 1 of 7
Question 1 of 7typescript

这个泛型函数签名是什么意思?

typescript
function identity<T>(arg: T): T {
  return arg;
}