Typescript Class where property names are unknown in advance

后端 未结 0 441
终归单人心
终归单人心 2021-01-03 06:23

This is what I\'ve tried

type SpecificType ={a:number; b:string};

type SomeInterface { 
  [key: string]: SpecificType
}  
class SomeClass implements SomeInte         


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