Skip to content

Glossary: TypeScript Basics

type alias

Also written: type aliases

A name for any type, made with the keyword `type`, such as `type Cents = number;`. For object shapes it is nearly interchangeable with `interface`.

Where the book teaches it

Related terms

interfaceunion type