Flow type refinement to ensure it is not a React Node

前端 未结 0 900
被撕碎了的回忆
被撕碎了的回忆 2020-12-21 00:42

I have one function that takes a sum type which includes React Node as one of the possible values. I can fix almost all flow errors by narrowing down types and saving values

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