TypeScript type for object of objects?

前端 未结 0 1063
野性不改
野性不改 2020-12-01 02:02

What would be the correct typescript type of something like

const test: MyType = {
  foo: { value: 1 },
  bar: { value: 2 }
}

something like<

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