Skip to content
tRPC

Partners

Type Alias: TRPCResponse<TData, TError>

On this page

TRPCResponse<TData, TError>: TRPCErrorResponse<TError> | TRPCSuccessResponse<TData>

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:102

A response to a call: a success or an error.

Type Parameters

Type ParameterDefault type
TDataunknown
TError extends TRPCErrorShapeTRPCErrorShape

See

https://trpc.io/docs/rpc#http-response-specification