Function: isTRPCClientError()
On this page
isTRPCClientError<
TInferrable>(cause):cause is TRPCClientError<TInferrable>
Defined in: packages/client/dist/types-DO-GCB2q.d.mts:115
Whether a value is a TRPCClientError, typed for a router or procedure.
Type Parameters
| Type Parameter |
|---|
TInferrable extends InferrableClientTypes |
Parameters
| Parameter | Type |
|---|---|
cause | unknown |
Returns
cause is TRPCClientError<TInferrable>
See
https://trpc.io/docs/client/vanilla/error-handling#catching-a-thrown-error