Skip to content

Glossary: TypeScript Basics

enum

Also written: enums, enumeration

A named set of values, such as `Carrier.UPS`. Unlike most TypeScript, it compiles to real JavaScript code, so many teams use unions of string literals instead.

Where the book teaches it

Related terms

literal typetype strippingerasableSyntaxOnly