Type Alias: TRPCClientErrorLike<TInferrable>
On this page
TRPCClientErrorLike<
TInferrable>:TRPCClientErrorBase<inferErrorShape<TInferrable>>
Defined in: packages/client/src/TRPCClientError.ts:27
The shape of a client error for a router or procedure, without the class. Use it to type errors you pass around, such as in React state.
Type Parameters
| Type Parameter |
|---|
TInferrable extends InferrableClientTypes |
See
https://trpc.io/docs/client/vanilla/infer-types#infer-trpcclienterror-types