Infer type of react prop by sibling prop value

前端 未结 0 759
野趣味
野趣味 2021-01-12 09:40

I\'ve defined two different Shop type:

interface BasicShop {
  address: string;
  distance?: number | null;
  name: string;
  thumbnail?: string;         


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