typescript template literal as interface key

前端 未结 0 632
旧时难觅i
旧时难觅i 2021-01-25 11:04

Lets say that I want to create a object contain multiple items in typescript as below:

const obj: Items = {
  item1: \'foo\         


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