How to avoid double non-nullable check in discriminated union in TypeScript?

后端 未结 0 1469
挽巷
挽巷 2021-01-23 11:47

In below code TypeScript does not believe that if customMessage is undefined, className is NOT undefined:



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