Skip to content
tRPC

Partners

Type Alias: TRPCPromise<TData, TErrorShape>

On this page

TRPCPromise<TData, TErrorShape>: Promise<TData> & object

Defined in: packages/client/src/safe.ts:12

The promise a client's .query() or .mutate() returns, tagged with the procedure's error shape for safe().

Type declaration

[errorShapeTag]

readonly [errorShapeTag]: TErrorShape

Type Parameters

Type Parameter
TData
TErrorShape