function foo<T>(x: T): T { return x; }
箭头函数
const foo = <T,>(x: T): T => x; const foo: <T>(x: T) => T = x => x;