TrpcErrorType
Default shape of the tRPC error, servers can change it with the
errorFormatter
Import
import { TrpcErrorType } from "@hyper-fetch/trpc"
Source
Package
Preview
type TrpcErrorType<Data> = {
code: number;
data: Data;
message: string;
}
Structure
TrpcErrorType
| Name | Type | Description |
|---|---|---|
| code | | |
| data | | |
| message | |

