Skip to content

Glossary: TypeScript Beyond the Basics

ReturnType

Also written: ReturnType<F>

A utility type that gives the type a function returns. For an `async` function it gives a promise, which `Awaited` can unwrap.

Where the book teaches it

Related terms

AwaitedParameterstypeof (type position)