
In short
A way to define a set of named constants (like `Status.Active`, `Status.Inactive`) that TypeScript treats as a distinct, checkable type.
How to learn this
- 1Replace a set of string constants in a project with a proper enum.
- 2Compare numeric enums vs string enums.
- 3Learn why many teams prefer union string literal types over enums for simpler cases.
More topics at this stop
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.