What are indexable types in typescript?

后端 未结 0 659
灰色年华
灰色年华 2020-12-03 02:24

I was reading indexable types and "dictionary" pattern confused me:

interface NumberOrStringDictionary {
  [index: string]: number | string;
  lengt         


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