Typescript (wrong?) type assumption on enum property

后端 未结 0 767
忘了有多久
忘了有多久 2020-12-06 00:09

Can someone explain me, why typescript thinks it knows that myClass.prop in the last line is EnumA.Y? I would think it should always be EnumA

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