TypeScript — How to infer key-value type based on dynamic key

前端 未结 0 828
借酒劲吻你
借酒劲吻你 2020-12-19 06:48

Suppose I had a state object with an interface such as this:

interface IState {
    car_brand: string;
    year: number;
    + many other properties with vari         


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