Skip to content

Glossary: TypeScript Basics

Promise<T>

Also written: promise, Promise

The type of a value that arrives later. `Promise<number>` is what an `async` function returning a number gives, and `await` unwraps it.

Where the book teaches it

Related terms

async functiongenerics