When does Typescript Type Inference in Switch Statements work?

后端 未结 0 1192
鱼传尺愫
鱼传尺愫 2020-12-04 15:06

Why does type inference work in example A but not in B? The only difference is the position of the type string. block.type vs block.meta.type. A co

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