Use union string literals instead of `enum` for simpler types, better inference, and zero runtime cost.
Why This Matters
`enum` emits runtime code, has surprising numeric-enum semantics, and interops poorly; string-literal unions are erasable and predictable.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.