Skip to content

Glossary: TypeScript Basics

async function

Also written: async, await

A function marked `async` always returns a promise, and `await` unwraps it to get the value. In TypeScript, such a function's return type is written `Promise<T>`.

Where the book teaches it

Related terms

Promise<T>generics