How to restrict typescript's literal expression to accept only available property?

前端 未结 0 791
南笙
南笙 2020-11-29 10:52

This is a very simple question.


const foo = {
    "a" :1,
    "b" :2,
    "c" :3
}

const foo2 = {
    "a":1,
    &qu         


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