泛型变量
1 | function loggingIdentity<T>(arg: Array<T>): Array<T> { |
泛型接口
1 | interface GenericIdentityFn<T> { |
泛型类
1 | class GenericNumber<T> { |
1 | function loggingIdentity<T>(arg: Array<T>): Array<T> { |
1 | interface GenericIdentityFn<T> { |
1 | class GenericNumber<T> { |