is there any way to differentiate string and template string literal

前端 未结 0 585
误落风尘
误落风尘 2021-01-02 07:26
type Data = {
  arrayObject: {
    firstName: string;
    lastName: string;
  }[];
};

type ArrayElementType = A extends readonly (infer T)[] ? T : never

t         


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