What is the meaning of the symbol | in typescript?

前端 未结 0 559
慢半拍i
慢半拍i 2020-12-17 08:34

I am new to TypeScript and came across the symbol | while solving LeetCode problem using Typescript. I guess it defines default variable type. Can someone elaborate it.

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