标签: javascript typescript
我想从键的字符串类型中排除 firstName 键。
firstName
但我收到了 An index signature parameter type must be either 'string' or 'number'.ts(1023) 错误。
An index signature parameter type must be either 'string' or 'number'.ts(1023)
沙盒演示: codesandbox.io/s/pzo4u?file=/index.ts