Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias ReturnType<T>

ReturnType: T extends (...args: any) => infer R ? R : any

Obtain the return type of a function type

Type Parameters

  • T extends (...args: any) => any
Was this helpful?