TypeScript: is there a way to convert the union type of strings to an enum

后端 未结 0 1418
天命终不由人
天命终不由人 2020-12-14 08:40

is there a way to convert the union type of strings to an enum? e.g

type SomeType = \'A\' | \'B\' | \'C\'

is there way to genera

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