oRPC SuperJson

Installation
SKILL.md

SuperJson

Replace the default oRPC RPC serializer with SuperJson.

Default oRPC serializer is faster and more efficient, but SuperJson is widely adopted.

SuperJson Serializer

Only supports SuperJson-compatible data types plus AsyncIteratorObject at root for Event Iterator. Not all RPC supported types work.

import { createORPCErrorFromJson, ErrorEvent, isORPCErrorJson, mapEventIterator, toORPCError } from '@orpc/client'
import type { StandardRPCSerializer } from '@orpc/client/standard'
import { isAsyncIteratorObject } from '@orpc/shared'
import SuperJSON from 'superjson'
Installs
–
GitHub Stars
8
First Seen
–
oRPC SuperJson — ali-master/skills