typescript restrict function property object keys with interface properties

后端 未结 0 623
清酒与你
清酒与你 2021-01-24 10:00

I have a typescript interface and I want to restrict the function parameter object to have only properties of the App interface as keys I tried using Record

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