Skip to main content
Version: v9.0.0

getOrpcResult

Reads the serialized { json, meta } body, or the multipart body when the output contains files. Statuses from 400 up are errors, the same as in oRPC.


Import
import { getOrpcResult } from "@hyper-fetch/orpc"

Parameters​

getOrpcResult(__namedParameters: { body: string | FormData; serializer: StandardRPCSerializer; status: number })
Parameters
NameTypeDescription
__namedParameters
{ body: string | FormData; serializer: StandardRPCSerializer; status: number }

Returns​

OrpcResultType