TrpcErrorDataType
Default shape of the
error.data
field, servers can change it with the
errorFormatter
Import
import { TrpcErrorDataType } from "@hyper-fetch/trpc"
Source
Package
Preview
type TrpcErrorDataType = {
code: string;
httpStatus: number;
path?: string;
stack?: string;
}
Structure
TrpcErrorDataType
| Name | Type | Description |
|---|---|---|
| code | | |
| httpStatus | | |
| path | | |
| stack | |

