Skip to main content
Version: v9.0.0

OrpcAdapterOptionsType


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

Preview​

type OrpcAdapterOptionsType = {
customJsonSerializers?: StandardRPCCustomJsonSerializer[];
queryMethod?: OrpcQueryMethod;
}

Structure​

OrpcAdapterOptionsType
NameTypeDescription
customJsonSerializers
StandardRPCCustomJsonSerializer[]

Serializers of custom types, the same as the customJsonSerializers option of RPCHandler and RPCLink . Both sides need the same list.

queryMethod
OrpcQueryMethod

HTTP method of the QUERY requests, mutations always use POST .