Awaited<T>

The utility type that unwraps a promise type to the value it resolves to, repeating through nested promises and thenables.

In more detail

Awaited<Promise<Promise<number>>> is number. Combined with ReturnType it extracts the resolved result of an async function or SDK call. It was added in TypeScript 4.5.

Related terms

Taught in

References