superjson
About superjson
Configure SuperJSON transformer on both server initTRPC.create({ transformer: superjson }) and every client terminating link (httpBatchLink, httpLink, wsLink, httpSubscriptionLink) to support Date, Map, Set, BigInt over the wire. Transformer must match on both sides. In v11, transformer goes on individual links, not the client constructor.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / trpc/ trpc --skill superjsonAfter installing, type/superjsonin Claude Code to confirm it loaded.
Comments
Markdown supported