Mixing dynamic and static object keys in type or interface

后端 未结 0 482
刺人心
刺人心 2021-01-12 15:04

I need something like this:

interface IMyInterface {
    Payload?: object;
    [key: string]: boolean | string | number | Date;
}

But the cod

相关标签:
回答
  • 消灭零回复
提交回复
热议问题