- isSecrecyError(input): input is {
code: "NOT_FOUND";
message: string;
name: "ClientError";
} | {
code:
| "UNAUTHORIZED"
| "NOT_FOUND"
| "PARSE_ERROR"
| "BAD_REQUEST"
| "INTERNAL_SERVER_ERROR"
| "NOT_IMPLEMENTED"
| "FORBIDDEN"
| "METHOD_NOT_SUPPORTED"
| "TIMEOUT"
| "CONFLICT"
| "PRECONDITION_FAILED"
| "PAYLOAD_TOO_LARGE"
| "UNPROCESSABLE_CONTENT"
| "TOO_MANY_REQUESTS"
| "CLIENT_CLOSED_REQUEST";
data?: unknown;
message: string;
name: "TRPCError";
} Returns input is {
code: "NOT_FOUND";
message: string;
name: "ClientError";
} | {
code:
| "UNAUTHORIZED"
| "NOT_FOUND"
| "PARSE_ERROR"
| "BAD_REQUEST"
| "INTERNAL_SERVER_ERROR"
| "NOT_IMPLEMENTED"
| "FORBIDDEN"
| "METHOD_NOT_SUPPORTED"
| "TIMEOUT"
| "CONFLICT"
| "PRECONDITION_FAILED"
| "PAYLOAD_TOO_LARGE"
| "UNPROCESSABLE_CONTENT"
| "TOO_MANY_REQUESTS"
| "CLIENT_CLOSED_REQUEST";
data?: unknown;
message: string;
name: "TRPCError";
}