Skip to content
tRPC

Partners

Type Alias: ~~inferAsyncReturnType<TFunction>~~

On this page

inferAsyncReturnType<TFunction>: Awaited<ReturnType<TFunction>>

Defined in: packages/server/src/@trpc/server/index.ts:152

The type a function's promise resolves to.

Type Parameters

Type Parameter
TFunction extends (...args) => any

Deprecated

Use Awaited<ReturnType<typeof myFunction>> instead.