Why does Typescript doesn't check values number-enums?

前端 未结 0 1558
猫巷女王i
猫巷女王i 2020-12-07 05:55

I noticed that if I have an enum that is composed of numbers, then basically TypeScripts allows assigning any number to the variable of such type:

enum EnumTe         


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