// keyof 操作符,遍历对象的key export type keys = keyof T; const a = { a: 1, b: 2, c: 3 }; // typeof 提取类型 export type Ta = keys; // Omit 去除某一项 export type Ta2 = Omit; // Pick 选择某一项 export type Ta3 = Pick; // & 添加 export type Ta4 = Ta3 & { d: string };