Skip to content

Glossary: TypeScript Basics

generics

Also written: generic, angle brackets

Types that take another type in angle brackets to fill in a detail, such as `Promise<number>` for a promise that gives a number. They let one type definition work with many different inner types.

Where the book teaches it

Related terms

Promise<T>utility typeRecord<K, V>