Awaited<Type>

Produces the type returned by a Promise object.

Awaited will recursively unwrap the result type of a Promise, in case the Promise result is another Promise.

Loading TypeScript...

Awaited is especially useful when working with functions that return promises, where you want to extract the value that the promise resolves to.

Loading TypeScript...

Was this page helpful?