Typescript how to infer type from a constant property value

前端 未结 0 1945
孤独总比滥情好
孤独总比滥情好 2020-12-09 19:41

I want to get the type of a property from a constant previously defined.

const my_constant = {
    user: {
             


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