passsy / prefer-union-over-enumr3
Prefer a union of literals over a TypeScript enum
PublicA TypeScript enum emits runtime code and breaks type stripping; a union of string literals gives the same safety with nothing emitted.
history
A TypeScript enum emits runtime code and breaks type stripping; a union of string literals gives the same safety with nothing emitted.