标签: typescript
我有这种类型:
type A = { book: string; math: number; [key: string]: any; }
如何从类型中排除特定道具?例如math?
math
{ book: string; [key: string]: any; }
Pick和Exclude类型不适用于此类型,因为它不是映射类型。或者,也许我错了吗?
Pick
Exclude
至少可以将math设置为不需要的道具吗?