Map nested interfaces to a single type with the path as key while preserving the type

后端 未结 0 1633
礼貌的吻别
礼貌的吻别 2021-01-29 20:54

Typescript 4.1 introduced template-literal-types which now allow us to map strings. Take the following interfaces as example:



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