3 ms·
Regarding your last point, I think the general consensus in TypeScript is to avoid using enums entirely.
by tengbretson 4y ago
Regarding your last point, I think the general consensus in TypeScript is to avoid using enums entirely.
- itslennysfault 4y agoWhat about union string types? I'd really like to be able to just do... type UserType = 'default' | 'admin' | 'manager'; interface UserTypeCounts { [key: UserType]: number }