DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
typescript get keys from enum
enum Team { Attacker, Defender } type TeamKeys = keyof typeof Team; // "Attacker" | "Defender"
PREVIOUS
NEXT
Tagged:
#typescript
#keys
#enum
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit