How to convert object literal to TypeScript type

后端 未结 0 630
一向
一向 2021-02-02 11:45

I just don\'t want to repeat myself (DRY).

I have the following object literal:

let obj = {
    test1: 1,
    test2:         


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