Skip to main content
Version: v9.0.0

TrpcTransformerType

Serializes the input and deserializes the output, for example superjson . It has to match the transformer passed to initTRPC.create() on the server.


Import
import { TrpcTransformerType } from "@hyper-fetch/trpc"

Preview​

type TrpcTransformerType = {
deserialize: (value: any) => any;
serialize: (value: any) => any;
}

Structure​

TrpcTransformerType
NameTypeDescription
deserialize
(value: any) => any
serialize
(value: any) => any