Typescript object declaration where each prop has its own generic

前端 未结 0 840
陌清茗
陌清茗 2021-02-20 06:04

I am trying to create a more dynamic object typing. Right now I have the following:

interface MyGeneric {
  value: T
}

interface MyObject {
  [name: str         


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