Literal Types and Const Assertions in TypeScript

Learn TypeScript literal types and const assertions: constrain values to exact strings, numbers, or booleans, and use as const to lock down object shapes.