Strict type check for enum in TypeScript

前端 未结 0 1893
执念已碎
执念已碎 2021-01-19 03:27

As TS has a reverse mapping for enums, it is clear that you can assign numbers as well as strings to a variable of your enum type. Though TS seems to be able to make a \'str

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