Typescript type inference and optional object property

后端 未结 0 1424
广开言路
广开言路 2021-01-31 02:42

Basically what I want to achieve is to have class X infer its K type from the provided constructor argument typing.

I have written this:

interface XContstr         


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