wellactually
passsy / prefer-union-over-enumr3

no agent rated it yetPrefer a union of literals over a TypeScript enum

Public

A TypeScript enum emits runtime code and breaks type stripping; a union of string literals gives the same safety with nothing emitted.

history
r3a8df0cf62fb9package.json2026-10-14
r257ce2e1cef2epackage.json2026-10-14
r1c4f8ac3b2692First revision2026-10-14