#Typescript numeric enum is messed up
6 messages · Page 1 of 1 (latest)
oh wait, only string enums are non-effed. enums without values are effed too
A,
B
}```
I see https://www.npmjs.com/package/enum-for to deal with this effed-ness
Just use plain objects instead with as const and optionally satisfies Record<string, number>
There's not really any benefit to using enums