Refine to type alias in union

前端 未结 0 1703
我在风中等你
我在风中等你 2020-12-15 16:52

I\'m trying to check if a value of a union type is one of the union\'d types.

In the code below, the first three approaches (1-3) seem to not be the correct one.

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