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.
Glossary: TypeScript Beyond the Basics
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.