OrpcErrorType
Error sent by an oRPC procedure, the JSON form of
ORPCError
.
Errors from the
.errors()
map of the procedure have
defined: true
.
Import
import { OrpcErrorType } from "@hyper-fetch/orpc"
Source
Package
Preview
type OrpcErrorType<Code,Data> = {
code: Code;
data: Data;
defined: boolean;
message: string;
status: number;
}
Structure
OrpcErrorType
| Name | Type | Description |
|---|---|---|
| code | | |
| data | | |
| defined | | |
| message | | |
| status | |

