Type “a” | “b” is not assignable to type “a” - Typescript

前端 未结 0 1795
心在旅途
心在旅途 2020-12-29 01:51

I\'m creating an React component, which can receive a data prop from two different formats. So, I defined an interface that can received a | b params ("a&q

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