// 泛型工具类型:Pick 从 Type 中选择一组属性来构造新类型 interface Props{ id: string title: string children: number[] } // 从 Props 中选择两个属性给 PickProps type PickProps = Pick // PickProps 具有 Props 的 id 和 title 属性