TypeScript: confusion about the usage of `keyof typeof` combination

后端 未结 0 1709
礼貌的吻别
礼貌的吻别 2021-01-28 12:06

I have an enum like this enum

enum Operations {
  AA = \'aa\',
  BB = \'bb\',
}

I would like to get an union type of its key, i.e. AA | BB<

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