使用infer type ArrayType<T extends any[]> = T extends Array<infer R> ? R : never; 使用 interface A { data:number } type B = A[]; ArrayType<B> // 等同于 返回 A