[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-trpc-superjson":3,"mdc-r6ggbg-key":37,"related-org-trpc-superjson":3953,"related-repo-trpc-superjson":4115},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":32,"sourceUrl":35,"mdContent":36},"superjson","configure SuperJSON for tRPC data transformation","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.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"trpc","tRPC","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftrpc.png",[12,16,17],{"name":13,"slug":14,"type":15},"Backend","backend","tag",{"name":9,"slug":8,"type":15},{"name":18,"slug":19,"type":15},"API Development","api-development",40424,"https:\u002F\u002Fgithub.com\u002Ftrpc\u002Ftrpc","2026-07-18T05:47:07.308782",null,1636,[26,27,28,29,30,31],"api","next","nextjs","prisma","react","typescript",{"repoUrl":21,"stars":20,"forks":24,"topics":33,"description":34},[26,27,28,29,30,31],"🧙‍♀️  Move Fast and Break Nothing. End-to-end typesafe APIs made easy. ","https:\u002F\u002Fgithub.com\u002Ftrpc\u002Ftrpc\u002Ftree\u002FHEAD\u002Fpackages\u002Fclient\u002Fskills\u002Fsuperjson","---\nname: superjson\ndescription: >\n  Configure SuperJSON transformer on both server initTRPC.create({ transformer:\n  superjson }) and every client terminating link (httpBatchLink, httpLink, wsLink,\n  httpSubscriptionLink) to support Date, Map, Set, BigInt over the wire. Transformer\n  must match on both sides. In v11, transformer goes on individual links, not the\n  client constructor.\ntype: composition\nlibrary: trpc\nlibrary_version: '11.16.0'\nrequires:\n  - server-setup\n  - client-setup\nsources:\n  - www\u002Fdocs\u002Fserver\u002Fdata-transformers.md\n---\n\n# tRPC -- SuperJSON Transformer\n\n## Setup\n\n### 1. Install superjson\n\n```bash\nnpm install superjson\n```\n\n### 2. Add to initTRPC on the server\n\n```ts\n\u002F\u002F server\u002Ftrpc.ts\nimport { initTRPC } from '@trpc\u002Fserver';\nimport superjson from 'superjson';\n\nconst t = initTRPC.create({\n  transformer: superjson,\n});\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n```\n\n### 3. Add to every terminating link on the client\n\n```ts\n\u002F\u002F client.ts\nimport { createTRPCClient, httpBatchLink } from '@trpc\u002Fclient';\nimport superjson from 'superjson';\nimport type { AppRouter } from '.\u002Fserver\u002Ftrpc';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      transformer: superjson,\n    }),\n  ],\n});\n```\n\nNow Date, Map, Set, BigInt, RegExp, undefined, and other non-JSON types survive the round trip.\n\n## Core Patterns\n\n### SuperJSON with splitLink and Subscriptions\n\n```ts\nimport {\n  createTRPCClient,\n  httpBatchLink,\n  httpSubscriptionLink,\n  splitLink,\n} from '@trpc\u002Fclient';\nimport superjson from 'superjson';\nimport type { AppRouter } from '.\u002Fserver\u002Ftrpc';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    splitLink({\n      condition: (op) => op.type === 'subscription',\n      true: httpSubscriptionLink({\n        url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n        transformer: superjson,\n      }),\n      false: httpBatchLink({\n        url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n        transformer: superjson,\n      }),\n    }),\n  ],\n});\n```\n\nEvery terminating link in every branch must have `transformer: superjson`.\n\n### SuperJSON with wsLink\n\n```ts\nimport { createTRPCClient, createWSClient, wsLink } from '@trpc\u002Fclient';\nimport superjson from 'superjson';\nimport type { AppRouter } from '.\u002Fserver\u002Ftrpc';\n\nconst wsClient = createWSClient({\n  url: 'ws:\u002F\u002Flocalhost:3000',\n});\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    wsLink\u003CAppRouter>({\n      client: wsClient,\n      transformer: superjson,\n    }),\n  ],\n});\n```\n\n### Returning Dates from Procedures\n\n```ts\n\u002F\u002F server\nimport { z } from 'zod';\nimport { publicProcedure, router } from '.\u002Ftrpc';\n\nconst appRouter = router({\n  getEvent: publicProcedure\n    .input(z.object({ id: z.string() }))\n    .query(({ input }) => {\n      return {\n        id: input.id,\n        name: 'Launch Party',\n        date: new Date('2025-01-01T00:00:00Z'),\n      };\n    }),\n});\n\nexport type AppRouter = typeof appRouter;\n```\n\n```ts\n\u002F\u002F client\nconst event = await client.getEvent.query({ id: '1' });\nconsole.log(event.date instanceof Date); \u002F\u002F true\nconsole.log(event.date.getFullYear()); \u002F\u002F 2025\n```\n\nWithout superjson, `event.date` would be a string like `\"2025-01-01T00:00:00.000Z\"`.\n\n## Common Mistakes\n\n### [CRITICAL] Transformer on server but missing from client link\n\nWrong:\n\n```ts\n\u002F\u002F Server\nconst t = initTRPC.create({ transformer: superjson });\n\n\u002F\u002F Client\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' })],\n});\n```\n\nCorrect:\n\n```ts\n\u002F\u002F Server\nconst t = initTRPC.create({ transformer: superjson });\n\n\u002F\u002F Client\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      transformer: superjson,\n    }),\n  ],\n});\n```\n\nServer encodes with superjson but client tries to parse raw JSON, causing \"Unable to transform response\" or garbled data.\n\nSource: www\u002Fdocs\u002Fserver\u002Fdata-transformers.md\n\n### [CRITICAL] Transformer goes on individual links, not createTRPCClient\n\nThe `transformer` option is on individual terminating links:\n\n```ts\ncreateTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      transformer: superjson,\n    }),\n  ],\n});\n```\n\nIn v11, `transformer` was moved from the client constructor to individual links. Passing it to `createTRPCClient` throws a TypeError.\n\nSource: packages\u002Fclient\u002Fsrc\u002Finternals\u002FTRPCUntypedClient.ts\n\n### [CRITICAL] Transformer on only some terminating links in splitLink\n\nWrong:\n\n```ts\nsplitLink({\n  condition: (op) => op.type === 'subscription',\n  true: httpSubscriptionLink({\n    url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    \u002F\u002F missing transformer!\n  }),\n  false: httpBatchLink({\n    url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    transformer: superjson,\n  }),\n});\n```\n\nCorrect:\n\n```ts\nsplitLink({\n  condition: (op) => op.type === 'subscription',\n  true: httpSubscriptionLink({\n    url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    transformer: superjson,\n  }),\n  false: httpBatchLink({\n    url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    transformer: superjson,\n  }),\n});\n```\n\nEvery terminating link must have the same transformer. A missing transformer on one branch causes deserialization failures only for operations routed through that branch.\n\nSource: www\u002Fdocs\u002Fserver\u002Fdata-transformers.md\n\n### [HIGH] Using transformer on client but not on server\n\nWrong:\n\n```ts\n\u002F\u002F Server -- no transformer\nconst t = initTRPC.create();\n\n\u002F\u002F Client\nhttpBatchLink({ url, transformer: superjson });\n```\n\nCorrect:\n\n```ts\n\u002F\u002F Server\nconst t = initTRPC.create({ transformer: superjson });\n\n\u002F\u002F Client\nhttpBatchLink({ url, transformer: superjson });\n```\n\nThe transformer must be configured on both `initTRPC.create()` and every client link. Client-only transformer corrupts the request encoding because the server expects plain JSON.\n\nSource: www\u002Fdocs\u002Fserver\u002Fdata-transformers.md\n\n## See Also\n\n- `client-setup` -- create the tRPC client and configure links\n- `links` -- detailed options for each link type including transformer\n- `server-setup` -- initTRPC.create() where the server transformer is configured\n",{"data":38,"body":46},{"name":4,"description":6,"type":39,"library":8,"library_version":40,"requires":41,"sources":44},"composition","11.16.0",[42,43],"server-setup","client-setup",[45],"www\u002Fdocs\u002Fserver\u002Fdata-transformers.md",{"type":47,"children":48},"root",[49,58,65,72,107,113,402,408,729,735,741,747,1286,1298,1304,1691,1697,2162,2366,2386,2392,2403,2408,2615,2620,2863,2868,2873,2883,2896,3048,3067,3072,3082,3086,3346,3350,3614,3619,3623,3634,3638,3750,3754,3888,3901,3905,3911,3947],{"type":50,"tag":51,"props":52,"children":54},"element","h1",{"id":53},"trpc-superjson-transformer",[55],{"type":56,"value":57},"text","tRPC -- SuperJSON Transformer",{"type":50,"tag":59,"props":60,"children":62},"h2",{"id":61},"setup",[63],{"type":56,"value":64},"Setup",{"type":50,"tag":66,"props":67,"children":69},"h3",{"id":68},"_1-install-superjson",[70],{"type":56,"value":71},"1. Install superjson",{"type":50,"tag":73,"props":74,"children":79},"pre",{"className":75,"code":76,"language":77,"meta":78,"style":78},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install superjson\n","bash","",[80],{"type":50,"tag":81,"props":82,"children":83},"code",{"__ignoreMap":78},[84],{"type":50,"tag":85,"props":86,"children":89},"span",{"class":87,"line":88},"line",1,[90,96,102],{"type":50,"tag":85,"props":91,"children":93},{"style":92},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[94],{"type":56,"value":95},"npm",{"type":50,"tag":85,"props":97,"children":99},{"style":98},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[100],{"type":56,"value":101}," install",{"type":50,"tag":85,"props":103,"children":104},{"style":98},[105],{"type":56,"value":106}," superjson\n",{"type":50,"tag":66,"props":108,"children":110},{"id":109},"_2-add-to-inittrpc-on-the-server",[111],{"type":56,"value":112},"2. Add to initTRPC on the server",{"type":50,"tag":73,"props":114,"children":118},{"className":115,"code":116,"language":117,"meta":78,"style":78},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F server\u002Ftrpc.ts\nimport { initTRPC } from '@trpc\u002Fserver';\nimport superjson from 'superjson';\n\nconst t = initTRPC.create({\n  transformer: superjson,\n});\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n","ts",[119],{"type":50,"tag":81,"props":120,"children":121},{"__ignoreMap":78},[122,131,183,217,227,272,297,315,323,364],{"type":50,"tag":85,"props":123,"children":124},{"class":87,"line":88},[125],{"type":50,"tag":85,"props":126,"children":128},{"style":127},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[129],{"type":56,"value":130},"\u002F\u002F server\u002Ftrpc.ts\n",{"type":50,"tag":85,"props":132,"children":134},{"class":87,"line":133},2,[135,141,147,153,158,163,168,173,178],{"type":50,"tag":85,"props":136,"children":138},{"style":137},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[139],{"type":56,"value":140},"import",{"type":50,"tag":85,"props":142,"children":144},{"style":143},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[145],{"type":56,"value":146}," {",{"type":50,"tag":85,"props":148,"children":150},{"style":149},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[151],{"type":56,"value":152}," initTRPC",{"type":50,"tag":85,"props":154,"children":155},{"style":143},[156],{"type":56,"value":157}," }",{"type":50,"tag":85,"props":159,"children":160},{"style":137},[161],{"type":56,"value":162}," from",{"type":50,"tag":85,"props":164,"children":165},{"style":143},[166],{"type":56,"value":167}," '",{"type":50,"tag":85,"props":169,"children":170},{"style":98},[171],{"type":56,"value":172},"@trpc\u002Fserver",{"type":50,"tag":85,"props":174,"children":175},{"style":143},[176],{"type":56,"value":177},"'",{"type":50,"tag":85,"props":179,"children":180},{"style":143},[181],{"type":56,"value":182},";\n",{"type":50,"tag":85,"props":184,"children":186},{"class":87,"line":185},3,[187,191,196,201,205,209,213],{"type":50,"tag":85,"props":188,"children":189},{"style":137},[190],{"type":56,"value":140},{"type":50,"tag":85,"props":192,"children":193},{"style":149},[194],{"type":56,"value":195}," superjson ",{"type":50,"tag":85,"props":197,"children":198},{"style":137},[199],{"type":56,"value":200},"from",{"type":50,"tag":85,"props":202,"children":203},{"style":143},[204],{"type":56,"value":167},{"type":50,"tag":85,"props":206,"children":207},{"style":98},[208],{"type":56,"value":4},{"type":50,"tag":85,"props":210,"children":211},{"style":143},[212],{"type":56,"value":177},{"type":50,"tag":85,"props":214,"children":215},{"style":143},[216],{"type":56,"value":182},{"type":50,"tag":85,"props":218,"children":220},{"class":87,"line":219},4,[221],{"type":50,"tag":85,"props":222,"children":224},{"emptyLinePlaceholder":223},true,[225],{"type":56,"value":226},"\n",{"type":50,"tag":85,"props":228,"children":230},{"class":87,"line":229},5,[231,237,242,247,251,256,262,267],{"type":50,"tag":85,"props":232,"children":234},{"style":233},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[235],{"type":56,"value":236},"const",{"type":50,"tag":85,"props":238,"children":239},{"style":149},[240],{"type":56,"value":241}," t ",{"type":50,"tag":85,"props":243,"children":244},{"style":143},[245],{"type":56,"value":246},"=",{"type":50,"tag":85,"props":248,"children":249},{"style":149},[250],{"type":56,"value":152},{"type":50,"tag":85,"props":252,"children":253},{"style":143},[254],{"type":56,"value":255},".",{"type":50,"tag":85,"props":257,"children":259},{"style":258},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[260],{"type":56,"value":261},"create",{"type":50,"tag":85,"props":263,"children":264},{"style":149},[265],{"type":56,"value":266},"(",{"type":50,"tag":85,"props":268,"children":269},{"style":143},[270],{"type":56,"value":271},"{\n",{"type":50,"tag":85,"props":273,"children":275},{"class":87,"line":274},6,[276,282,287,292],{"type":50,"tag":85,"props":277,"children":279},{"style":278},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[280],{"type":56,"value":281},"  transformer",{"type":50,"tag":85,"props":283,"children":284},{"style":143},[285],{"type":56,"value":286},":",{"type":50,"tag":85,"props":288,"children":289},{"style":149},[290],{"type":56,"value":291}," superjson",{"type":50,"tag":85,"props":293,"children":294},{"style":143},[295],{"type":56,"value":296},",\n",{"type":50,"tag":85,"props":298,"children":300},{"class":87,"line":299},7,[301,306,311],{"type":50,"tag":85,"props":302,"children":303},{"style":143},[304],{"type":56,"value":305},"}",{"type":50,"tag":85,"props":307,"children":308},{"style":149},[309],{"type":56,"value":310},")",{"type":50,"tag":85,"props":312,"children":313},{"style":143},[314],{"type":56,"value":182},{"type":50,"tag":85,"props":316,"children":318},{"class":87,"line":317},8,[319],{"type":50,"tag":85,"props":320,"children":321},{"emptyLinePlaceholder":223},[322],{"type":56,"value":226},{"type":50,"tag":85,"props":324,"children":326},{"class":87,"line":325},9,[327,332,337,342,346,351,355,360],{"type":50,"tag":85,"props":328,"children":329},{"style":137},[330],{"type":56,"value":331},"export",{"type":50,"tag":85,"props":333,"children":334},{"style":233},[335],{"type":56,"value":336}," const",{"type":50,"tag":85,"props":338,"children":339},{"style":149},[340],{"type":56,"value":341}," router ",{"type":50,"tag":85,"props":343,"children":344},{"style":143},[345],{"type":56,"value":246},{"type":50,"tag":85,"props":347,"children":348},{"style":149},[349],{"type":56,"value":350}," t",{"type":50,"tag":85,"props":352,"children":353},{"style":143},[354],{"type":56,"value":255},{"type":50,"tag":85,"props":356,"children":357},{"style":149},[358],{"type":56,"value":359},"router",{"type":50,"tag":85,"props":361,"children":362},{"style":143},[363],{"type":56,"value":182},{"type":50,"tag":85,"props":365,"children":367},{"class":87,"line":366},10,[368,372,376,381,385,389,393,398],{"type":50,"tag":85,"props":369,"children":370},{"style":137},[371],{"type":56,"value":331},{"type":50,"tag":85,"props":373,"children":374},{"style":233},[375],{"type":56,"value":336},{"type":50,"tag":85,"props":377,"children":378},{"style":149},[379],{"type":56,"value":380}," publicProcedure ",{"type":50,"tag":85,"props":382,"children":383},{"style":143},[384],{"type":56,"value":246},{"type":50,"tag":85,"props":386,"children":387},{"style":149},[388],{"type":56,"value":350},{"type":50,"tag":85,"props":390,"children":391},{"style":143},[392],{"type":56,"value":255},{"type":50,"tag":85,"props":394,"children":395},{"style":149},[396],{"type":56,"value":397},"procedure",{"type":50,"tag":85,"props":399,"children":400},{"style":143},[401],{"type":56,"value":182},{"type":50,"tag":66,"props":403,"children":405},{"id":404},"_3-add-to-every-terminating-link-on-the-client",[406],{"type":56,"value":407},"3. Add to every terminating link on the client",{"type":50,"tag":73,"props":409,"children":411},{"className":115,"code":410,"language":117,"meta":78,"style":78},"\u002F\u002F client.ts\nimport { createTRPCClient, httpBatchLink } from '@trpc\u002Fclient';\nimport superjson from 'superjson';\nimport type { AppRouter } from '.\u002Fserver\u002Ftrpc';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      transformer: superjson,\n    }),\n  ],\n});\n",[412],{"type":50,"tag":81,"props":413,"children":414},{"__ignoreMap":78},[415,423,474,505,551,558,601,618,634,663,683,700,713],{"type":50,"tag":85,"props":416,"children":417},{"class":87,"line":88},[418],{"type":50,"tag":85,"props":419,"children":420},{"style":127},[421],{"type":56,"value":422},"\u002F\u002F client.ts\n",{"type":50,"tag":85,"props":424,"children":425},{"class":87,"line":133},[426,430,434,439,444,449,453,457,461,466,470],{"type":50,"tag":85,"props":427,"children":428},{"style":137},[429],{"type":56,"value":140},{"type":50,"tag":85,"props":431,"children":432},{"style":143},[433],{"type":56,"value":146},{"type":50,"tag":85,"props":435,"children":436},{"style":149},[437],{"type":56,"value":438}," createTRPCClient",{"type":50,"tag":85,"props":440,"children":441},{"style":143},[442],{"type":56,"value":443},",",{"type":50,"tag":85,"props":445,"children":446},{"style":149},[447],{"type":56,"value":448}," httpBatchLink",{"type":50,"tag":85,"props":450,"children":451},{"style":143},[452],{"type":56,"value":157},{"type":50,"tag":85,"props":454,"children":455},{"style":137},[456],{"type":56,"value":162},{"type":50,"tag":85,"props":458,"children":459},{"style":143},[460],{"type":56,"value":167},{"type":50,"tag":85,"props":462,"children":463},{"style":98},[464],{"type":56,"value":465},"@trpc\u002Fclient",{"type":50,"tag":85,"props":467,"children":468},{"style":143},[469],{"type":56,"value":177},{"type":50,"tag":85,"props":471,"children":472},{"style":143},[473],{"type":56,"value":182},{"type":50,"tag":85,"props":475,"children":476},{"class":87,"line":185},[477,481,485,489,493,497,501],{"type":50,"tag":85,"props":478,"children":479},{"style":137},[480],{"type":56,"value":140},{"type":50,"tag":85,"props":482,"children":483},{"style":149},[484],{"type":56,"value":195},{"type":50,"tag":85,"props":486,"children":487},{"style":137},[488],{"type":56,"value":200},{"type":50,"tag":85,"props":490,"children":491},{"style":143},[492],{"type":56,"value":167},{"type":50,"tag":85,"props":494,"children":495},{"style":98},[496],{"type":56,"value":4},{"type":50,"tag":85,"props":498,"children":499},{"style":143},[500],{"type":56,"value":177},{"type":50,"tag":85,"props":502,"children":503},{"style":143},[504],{"type":56,"value":182},{"type":50,"tag":85,"props":506,"children":507},{"class":87,"line":219},[508,512,517,521,526,530,534,538,543,547],{"type":50,"tag":85,"props":509,"children":510},{"style":137},[511],{"type":56,"value":140},{"type":50,"tag":85,"props":513,"children":514},{"style":137},[515],{"type":56,"value":516}," type",{"type":50,"tag":85,"props":518,"children":519},{"style":143},[520],{"type":56,"value":146},{"type":50,"tag":85,"props":522,"children":523},{"style":149},[524],{"type":56,"value":525}," AppRouter",{"type":50,"tag":85,"props":527,"children":528},{"style":143},[529],{"type":56,"value":157},{"type":50,"tag":85,"props":531,"children":532},{"style":137},[533],{"type":56,"value":162},{"type":50,"tag":85,"props":535,"children":536},{"style":143},[537],{"type":56,"value":167},{"type":50,"tag":85,"props":539,"children":540},{"style":98},[541],{"type":56,"value":542},".\u002Fserver\u002Ftrpc",{"type":50,"tag":85,"props":544,"children":545},{"style":143},[546],{"type":56,"value":177},{"type":50,"tag":85,"props":548,"children":549},{"style":143},[550],{"type":56,"value":182},{"type":50,"tag":85,"props":552,"children":553},{"class":87,"line":229},[554],{"type":50,"tag":85,"props":555,"children":556},{"emptyLinePlaceholder":223},[557],{"type":56,"value":226},{"type":50,"tag":85,"props":559,"children":560},{"class":87,"line":274},[561,565,570,574,578,583,588,593,597],{"type":50,"tag":85,"props":562,"children":563},{"style":233},[564],{"type":56,"value":236},{"type":50,"tag":85,"props":566,"children":567},{"style":149},[568],{"type":56,"value":569}," client ",{"type":50,"tag":85,"props":571,"children":572},{"style":143},[573],{"type":56,"value":246},{"type":50,"tag":85,"props":575,"children":576},{"style":258},[577],{"type":56,"value":438},{"type":50,"tag":85,"props":579,"children":580},{"style":143},[581],{"type":56,"value":582},"\u003C",{"type":50,"tag":85,"props":584,"children":585},{"style":92},[586],{"type":56,"value":587},"AppRouter",{"type":50,"tag":85,"props":589,"children":590},{"style":143},[591],{"type":56,"value":592},">",{"type":50,"tag":85,"props":594,"children":595},{"style":149},[596],{"type":56,"value":266},{"type":50,"tag":85,"props":598,"children":599},{"style":143},[600],{"type":56,"value":271},{"type":50,"tag":85,"props":602,"children":603},{"class":87,"line":299},[604,609,613],{"type":50,"tag":85,"props":605,"children":606},{"style":278},[607],{"type":56,"value":608},"  links",{"type":50,"tag":85,"props":610,"children":611},{"style":143},[612],{"type":56,"value":286},{"type":50,"tag":85,"props":614,"children":615},{"style":149},[616],{"type":56,"value":617}," [\n",{"type":50,"tag":85,"props":619,"children":620},{"class":87,"line":317},[621,626,630],{"type":50,"tag":85,"props":622,"children":623},{"style":258},[624],{"type":56,"value":625},"    httpBatchLink",{"type":50,"tag":85,"props":627,"children":628},{"style":149},[629],{"type":56,"value":266},{"type":50,"tag":85,"props":631,"children":632},{"style":143},[633],{"type":56,"value":271},{"type":50,"tag":85,"props":635,"children":636},{"class":87,"line":325},[637,642,646,650,655,659],{"type":50,"tag":85,"props":638,"children":639},{"style":278},[640],{"type":56,"value":641},"      url",{"type":50,"tag":85,"props":643,"children":644},{"style":143},[645],{"type":56,"value":286},{"type":50,"tag":85,"props":647,"children":648},{"style":143},[649],{"type":56,"value":167},{"type":50,"tag":85,"props":651,"children":652},{"style":98},[653],{"type":56,"value":654},"http:\u002F\u002Flocalhost:3000\u002Ftrpc",{"type":50,"tag":85,"props":656,"children":657},{"style":143},[658],{"type":56,"value":177},{"type":50,"tag":85,"props":660,"children":661},{"style":143},[662],{"type":56,"value":296},{"type":50,"tag":85,"props":664,"children":665},{"class":87,"line":366},[666,671,675,679],{"type":50,"tag":85,"props":667,"children":668},{"style":278},[669],{"type":56,"value":670},"      transformer",{"type":50,"tag":85,"props":672,"children":673},{"style":143},[674],{"type":56,"value":286},{"type":50,"tag":85,"props":676,"children":677},{"style":149},[678],{"type":56,"value":291},{"type":50,"tag":85,"props":680,"children":681},{"style":143},[682],{"type":56,"value":296},{"type":50,"tag":85,"props":684,"children":686},{"class":87,"line":685},11,[687,692,696],{"type":50,"tag":85,"props":688,"children":689},{"style":143},[690],{"type":56,"value":691},"    }",{"type":50,"tag":85,"props":693,"children":694},{"style":149},[695],{"type":56,"value":310},{"type":50,"tag":85,"props":697,"children":698},{"style":143},[699],{"type":56,"value":296},{"type":50,"tag":85,"props":701,"children":703},{"class":87,"line":702},12,[704,709],{"type":50,"tag":85,"props":705,"children":706},{"style":149},[707],{"type":56,"value":708},"  ]",{"type":50,"tag":85,"props":710,"children":711},{"style":143},[712],{"type":56,"value":296},{"type":50,"tag":85,"props":714,"children":716},{"class":87,"line":715},13,[717,721,725],{"type":50,"tag":85,"props":718,"children":719},{"style":143},[720],{"type":56,"value":305},{"type":50,"tag":85,"props":722,"children":723},{"style":149},[724],{"type":56,"value":310},{"type":50,"tag":85,"props":726,"children":727},{"style":143},[728],{"type":56,"value":182},{"type":50,"tag":730,"props":731,"children":732},"p",{},[733],{"type":56,"value":734},"Now Date, Map, Set, BigInt, RegExp, undefined, and other non-JSON types survive the round trip.",{"type":50,"tag":59,"props":736,"children":738},{"id":737},"core-patterns",[739],{"type":56,"value":740},"Core Patterns",{"type":50,"tag":66,"props":742,"children":744},{"id":743},"superjson-with-splitlink-and-subscriptions",[745],{"type":56,"value":746},"SuperJSON with splitLink and Subscriptions",{"type":50,"tag":73,"props":748,"children":750},{"className":115,"code":749,"language":117,"meta":78,"style":78},"import {\n  createTRPCClient,\n  httpBatchLink,\n  httpSubscriptionLink,\n  splitLink,\n} from '@trpc\u002Fclient';\nimport superjson from 'superjson';\nimport type { AppRouter } from '.\u002Fserver\u002Ftrpc';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    splitLink({\n      condition: (op) => op.type === 'subscription',\n      true: httpSubscriptionLink({\n        url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n        transformer: superjson,\n      }),\n      false: httpBatchLink({\n        url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n        transformer: superjson,\n      }),\n    }),\n  ],\n});\n",[751],{"type":50,"tag":81,"props":752,"children":753},{"__ignoreMap":78},[754,766,778,790,802,814,841,872,915,922,961,976,992,1060,1086,1115,1136,1153,1178,1206,1226,1242,1258,1270],{"type":50,"tag":85,"props":755,"children":756},{"class":87,"line":88},[757,761],{"type":50,"tag":85,"props":758,"children":759},{"style":137},[760],{"type":56,"value":140},{"type":50,"tag":85,"props":762,"children":763},{"style":143},[764],{"type":56,"value":765}," {\n",{"type":50,"tag":85,"props":767,"children":768},{"class":87,"line":133},[769,774],{"type":50,"tag":85,"props":770,"children":771},{"style":149},[772],{"type":56,"value":773},"  createTRPCClient",{"type":50,"tag":85,"props":775,"children":776},{"style":143},[777],{"type":56,"value":296},{"type":50,"tag":85,"props":779,"children":780},{"class":87,"line":185},[781,786],{"type":50,"tag":85,"props":782,"children":783},{"style":149},[784],{"type":56,"value":785},"  httpBatchLink",{"type":50,"tag":85,"props":787,"children":788},{"style":143},[789],{"type":56,"value":296},{"type":50,"tag":85,"props":791,"children":792},{"class":87,"line":219},[793,798],{"type":50,"tag":85,"props":794,"children":795},{"style":149},[796],{"type":56,"value":797},"  httpSubscriptionLink",{"type":50,"tag":85,"props":799,"children":800},{"style":143},[801],{"type":56,"value":296},{"type":50,"tag":85,"props":803,"children":804},{"class":87,"line":229},[805,810],{"type":50,"tag":85,"props":806,"children":807},{"style":149},[808],{"type":56,"value":809},"  splitLink",{"type":50,"tag":85,"props":811,"children":812},{"style":143},[813],{"type":56,"value":296},{"type":50,"tag":85,"props":815,"children":816},{"class":87,"line":274},[817,821,825,829,833,837],{"type":50,"tag":85,"props":818,"children":819},{"style":143},[820],{"type":56,"value":305},{"type":50,"tag":85,"props":822,"children":823},{"style":137},[824],{"type":56,"value":162},{"type":50,"tag":85,"props":826,"children":827},{"style":143},[828],{"type":56,"value":167},{"type":50,"tag":85,"props":830,"children":831},{"style":98},[832],{"type":56,"value":465},{"type":50,"tag":85,"props":834,"children":835},{"style":143},[836],{"type":56,"value":177},{"type":50,"tag":85,"props":838,"children":839},{"style":143},[840],{"type":56,"value":182},{"type":50,"tag":85,"props":842,"children":843},{"class":87,"line":299},[844,848,852,856,860,864,868],{"type":50,"tag":85,"props":845,"children":846},{"style":137},[847],{"type":56,"value":140},{"type":50,"tag":85,"props":849,"children":850},{"style":149},[851],{"type":56,"value":195},{"type":50,"tag":85,"props":853,"children":854},{"style":137},[855],{"type":56,"value":200},{"type":50,"tag":85,"props":857,"children":858},{"style":143},[859],{"type":56,"value":167},{"type":50,"tag":85,"props":861,"children":862},{"style":98},[863],{"type":56,"value":4},{"type":50,"tag":85,"props":865,"children":866},{"style":143},[867],{"type":56,"value":177},{"type":50,"tag":85,"props":869,"children":870},{"style":143},[871],{"type":56,"value":182},{"type":50,"tag":85,"props":873,"children":874},{"class":87,"line":317},[875,879,883,887,891,895,899,903,907,911],{"type":50,"tag":85,"props":876,"children":877},{"style":137},[878],{"type":56,"value":140},{"type":50,"tag":85,"props":880,"children":881},{"style":137},[882],{"type":56,"value":516},{"type":50,"tag":85,"props":884,"children":885},{"style":143},[886],{"type":56,"value":146},{"type":50,"tag":85,"props":888,"children":889},{"style":149},[890],{"type":56,"value":525},{"type":50,"tag":85,"props":892,"children":893},{"style":143},[894],{"type":56,"value":157},{"type":50,"tag":85,"props":896,"children":897},{"style":137},[898],{"type":56,"value":162},{"type":50,"tag":85,"props":900,"children":901},{"style":143},[902],{"type":56,"value":167},{"type":50,"tag":85,"props":904,"children":905},{"style":98},[906],{"type":56,"value":542},{"type":50,"tag":85,"props":908,"children":909},{"style":143},[910],{"type":56,"value":177},{"type":50,"tag":85,"props":912,"children":913},{"style":143},[914],{"type":56,"value":182},{"type":50,"tag":85,"props":916,"children":917},{"class":87,"line":325},[918],{"type":50,"tag":85,"props":919,"children":920},{"emptyLinePlaceholder":223},[921],{"type":56,"value":226},{"type":50,"tag":85,"props":923,"children":924},{"class":87,"line":366},[925,929,933,937,941,945,949,953,957],{"type":50,"tag":85,"props":926,"children":927},{"style":233},[928],{"type":56,"value":236},{"type":50,"tag":85,"props":930,"children":931},{"style":149},[932],{"type":56,"value":569},{"type":50,"tag":85,"props":934,"children":935},{"style":143},[936],{"type":56,"value":246},{"type":50,"tag":85,"props":938,"children":939},{"style":258},[940],{"type":56,"value":438},{"type":50,"tag":85,"props":942,"children":943},{"style":143},[944],{"type":56,"value":582},{"type":50,"tag":85,"props":946,"children":947},{"style":92},[948],{"type":56,"value":587},{"type":50,"tag":85,"props":950,"children":951},{"style":143},[952],{"type":56,"value":592},{"type":50,"tag":85,"props":954,"children":955},{"style":149},[956],{"type":56,"value":266},{"type":50,"tag":85,"props":958,"children":959},{"style":143},[960],{"type":56,"value":271},{"type":50,"tag":85,"props":962,"children":963},{"class":87,"line":685},[964,968,972],{"type":50,"tag":85,"props":965,"children":966},{"style":278},[967],{"type":56,"value":608},{"type":50,"tag":85,"props":969,"children":970},{"style":143},[971],{"type":56,"value":286},{"type":50,"tag":85,"props":973,"children":974},{"style":149},[975],{"type":56,"value":617},{"type":50,"tag":85,"props":977,"children":978},{"class":87,"line":702},[979,984,988],{"type":50,"tag":85,"props":980,"children":981},{"style":258},[982],{"type":56,"value":983},"    splitLink",{"type":50,"tag":85,"props":985,"children":986},{"style":149},[987],{"type":56,"value":266},{"type":50,"tag":85,"props":989,"children":990},{"style":143},[991],{"type":56,"value":271},{"type":50,"tag":85,"props":993,"children":994},{"class":87,"line":715},[995,1000,1004,1009,1015,1019,1024,1029,1033,1038,1043,1047,1052,1056],{"type":50,"tag":85,"props":996,"children":997},{"style":258},[998],{"type":56,"value":999},"      condition",{"type":50,"tag":85,"props":1001,"children":1002},{"style":143},[1003],{"type":56,"value":286},{"type":50,"tag":85,"props":1005,"children":1006},{"style":143},[1007],{"type":56,"value":1008}," (",{"type":50,"tag":85,"props":1010,"children":1012},{"style":1011},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1013],{"type":56,"value":1014},"op",{"type":50,"tag":85,"props":1016,"children":1017},{"style":143},[1018],{"type":56,"value":310},{"type":50,"tag":85,"props":1020,"children":1021},{"style":233},[1022],{"type":56,"value":1023}," =>",{"type":50,"tag":85,"props":1025,"children":1026},{"style":149},[1027],{"type":56,"value":1028}," op",{"type":50,"tag":85,"props":1030,"children":1031},{"style":143},[1032],{"type":56,"value":255},{"type":50,"tag":85,"props":1034,"children":1035},{"style":149},[1036],{"type":56,"value":1037},"type ",{"type":50,"tag":85,"props":1039,"children":1040},{"style":143},[1041],{"type":56,"value":1042},"===",{"type":50,"tag":85,"props":1044,"children":1045},{"style":143},[1046],{"type":56,"value":167},{"type":50,"tag":85,"props":1048,"children":1049},{"style":98},[1050],{"type":56,"value":1051},"subscription",{"type":50,"tag":85,"props":1053,"children":1054},{"style":143},[1055],{"type":56,"value":177},{"type":50,"tag":85,"props":1057,"children":1058},{"style":143},[1059],{"type":56,"value":296},{"type":50,"tag":85,"props":1061,"children":1063},{"class":87,"line":1062},14,[1064,1069,1073,1078,1082],{"type":50,"tag":85,"props":1065,"children":1066},{"style":278},[1067],{"type":56,"value":1068},"      true",{"type":50,"tag":85,"props":1070,"children":1071},{"style":143},[1072],{"type":56,"value":286},{"type":50,"tag":85,"props":1074,"children":1075},{"style":258},[1076],{"type":56,"value":1077}," httpSubscriptionLink",{"type":50,"tag":85,"props":1079,"children":1080},{"style":149},[1081],{"type":56,"value":266},{"type":50,"tag":85,"props":1083,"children":1084},{"style":143},[1085],{"type":56,"value":271},{"type":50,"tag":85,"props":1087,"children":1089},{"class":87,"line":1088},15,[1090,1095,1099,1103,1107,1111],{"type":50,"tag":85,"props":1091,"children":1092},{"style":278},[1093],{"type":56,"value":1094},"        url",{"type":50,"tag":85,"props":1096,"children":1097},{"style":143},[1098],{"type":56,"value":286},{"type":50,"tag":85,"props":1100,"children":1101},{"style":143},[1102],{"type":56,"value":167},{"type":50,"tag":85,"props":1104,"children":1105},{"style":98},[1106],{"type":56,"value":654},{"type":50,"tag":85,"props":1108,"children":1109},{"style":143},[1110],{"type":56,"value":177},{"type":50,"tag":85,"props":1112,"children":1113},{"style":143},[1114],{"type":56,"value":296},{"type":50,"tag":85,"props":1116,"children":1118},{"class":87,"line":1117},16,[1119,1124,1128,1132],{"type":50,"tag":85,"props":1120,"children":1121},{"style":278},[1122],{"type":56,"value":1123},"        transformer",{"type":50,"tag":85,"props":1125,"children":1126},{"style":143},[1127],{"type":56,"value":286},{"type":50,"tag":85,"props":1129,"children":1130},{"style":149},[1131],{"type":56,"value":291},{"type":50,"tag":85,"props":1133,"children":1134},{"style":143},[1135],{"type":56,"value":296},{"type":50,"tag":85,"props":1137,"children":1139},{"class":87,"line":1138},17,[1140,1145,1149],{"type":50,"tag":85,"props":1141,"children":1142},{"style":143},[1143],{"type":56,"value":1144},"      }",{"type":50,"tag":85,"props":1146,"children":1147},{"style":149},[1148],{"type":56,"value":310},{"type":50,"tag":85,"props":1150,"children":1151},{"style":143},[1152],{"type":56,"value":296},{"type":50,"tag":85,"props":1154,"children":1156},{"class":87,"line":1155},18,[1157,1162,1166,1170,1174],{"type":50,"tag":85,"props":1158,"children":1159},{"style":278},[1160],{"type":56,"value":1161},"      false",{"type":50,"tag":85,"props":1163,"children":1164},{"style":143},[1165],{"type":56,"value":286},{"type":50,"tag":85,"props":1167,"children":1168},{"style":258},[1169],{"type":56,"value":448},{"type":50,"tag":85,"props":1171,"children":1172},{"style":149},[1173],{"type":56,"value":266},{"type":50,"tag":85,"props":1175,"children":1176},{"style":143},[1177],{"type":56,"value":271},{"type":50,"tag":85,"props":1179,"children":1181},{"class":87,"line":1180},19,[1182,1186,1190,1194,1198,1202],{"type":50,"tag":85,"props":1183,"children":1184},{"style":278},[1185],{"type":56,"value":1094},{"type":50,"tag":85,"props":1187,"children":1188},{"style":143},[1189],{"type":56,"value":286},{"type":50,"tag":85,"props":1191,"children":1192},{"style":143},[1193],{"type":56,"value":167},{"type":50,"tag":85,"props":1195,"children":1196},{"style":98},[1197],{"type":56,"value":654},{"type":50,"tag":85,"props":1199,"children":1200},{"style":143},[1201],{"type":56,"value":177},{"type":50,"tag":85,"props":1203,"children":1204},{"style":143},[1205],{"type":56,"value":296},{"type":50,"tag":85,"props":1207,"children":1209},{"class":87,"line":1208},20,[1210,1214,1218,1222],{"type":50,"tag":85,"props":1211,"children":1212},{"style":278},[1213],{"type":56,"value":1123},{"type":50,"tag":85,"props":1215,"children":1216},{"style":143},[1217],{"type":56,"value":286},{"type":50,"tag":85,"props":1219,"children":1220},{"style":149},[1221],{"type":56,"value":291},{"type":50,"tag":85,"props":1223,"children":1224},{"style":143},[1225],{"type":56,"value":296},{"type":50,"tag":85,"props":1227,"children":1229},{"class":87,"line":1228},21,[1230,1234,1238],{"type":50,"tag":85,"props":1231,"children":1232},{"style":143},[1233],{"type":56,"value":1144},{"type":50,"tag":85,"props":1235,"children":1236},{"style":149},[1237],{"type":56,"value":310},{"type":50,"tag":85,"props":1239,"children":1240},{"style":143},[1241],{"type":56,"value":296},{"type":50,"tag":85,"props":1243,"children":1245},{"class":87,"line":1244},22,[1246,1250,1254],{"type":50,"tag":85,"props":1247,"children":1248},{"style":143},[1249],{"type":56,"value":691},{"type":50,"tag":85,"props":1251,"children":1252},{"style":149},[1253],{"type":56,"value":310},{"type":50,"tag":85,"props":1255,"children":1256},{"style":143},[1257],{"type":56,"value":296},{"type":50,"tag":85,"props":1259,"children":1261},{"class":87,"line":1260},23,[1262,1266],{"type":50,"tag":85,"props":1263,"children":1264},{"style":149},[1265],{"type":56,"value":708},{"type":50,"tag":85,"props":1267,"children":1268},{"style":143},[1269],{"type":56,"value":296},{"type":50,"tag":85,"props":1271,"children":1273},{"class":87,"line":1272},24,[1274,1278,1282],{"type":50,"tag":85,"props":1275,"children":1276},{"style":143},[1277],{"type":56,"value":305},{"type":50,"tag":85,"props":1279,"children":1280},{"style":149},[1281],{"type":56,"value":310},{"type":50,"tag":85,"props":1283,"children":1284},{"style":143},[1285],{"type":56,"value":182},{"type":50,"tag":730,"props":1287,"children":1288},{},[1289,1291,1297],{"type":56,"value":1290},"Every terminating link in every branch must have ",{"type":50,"tag":81,"props":1292,"children":1294},{"className":1293},[],[1295],{"type":56,"value":1296},"transformer: superjson",{"type":56,"value":255},{"type":50,"tag":66,"props":1299,"children":1301},{"id":1300},"superjson-with-wslink",[1302],{"type":56,"value":1303},"SuperJSON with wsLink",{"type":50,"tag":73,"props":1305,"children":1307},{"className":115,"code":1306,"language":117,"meta":78,"style":78},"import { createTRPCClient, createWSClient, wsLink } from '@trpc\u002Fclient';\nimport superjson from 'superjson';\nimport type { AppRouter } from '.\u002Fserver\u002Ftrpc';\n\nconst wsClient = createWSClient({\n  url: 'ws:\u002F\u002Flocalhost:3000',\n});\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    wsLink\u003CAppRouter>({\n      client: wsClient,\n      transformer: superjson,\n    }),\n  ],\n});\n",[1308],{"type":50,"tag":81,"props":1309,"children":1310},{"__ignoreMap":78},[1311,1368,1399,1442,1449,1477,1506,1521,1528,1567,1582,1610,1631,1650,1665,1676],{"type":50,"tag":85,"props":1312,"children":1313},{"class":87,"line":88},[1314,1318,1322,1326,1330,1335,1339,1344,1348,1352,1356,1360,1364],{"type":50,"tag":85,"props":1315,"children":1316},{"style":137},[1317],{"type":56,"value":140},{"type":50,"tag":85,"props":1319,"children":1320},{"style":143},[1321],{"type":56,"value":146},{"type":50,"tag":85,"props":1323,"children":1324},{"style":149},[1325],{"type":56,"value":438},{"type":50,"tag":85,"props":1327,"children":1328},{"style":143},[1329],{"type":56,"value":443},{"type":50,"tag":85,"props":1331,"children":1332},{"style":149},[1333],{"type":56,"value":1334}," createWSClient",{"type":50,"tag":85,"props":1336,"children":1337},{"style":143},[1338],{"type":56,"value":443},{"type":50,"tag":85,"props":1340,"children":1341},{"style":149},[1342],{"type":56,"value":1343}," wsLink",{"type":50,"tag":85,"props":1345,"children":1346},{"style":143},[1347],{"type":56,"value":157},{"type":50,"tag":85,"props":1349,"children":1350},{"style":137},[1351],{"type":56,"value":162},{"type":50,"tag":85,"props":1353,"children":1354},{"style":143},[1355],{"type":56,"value":167},{"type":50,"tag":85,"props":1357,"children":1358},{"style":98},[1359],{"type":56,"value":465},{"type":50,"tag":85,"props":1361,"children":1362},{"style":143},[1363],{"type":56,"value":177},{"type":50,"tag":85,"props":1365,"children":1366},{"style":143},[1367],{"type":56,"value":182},{"type":50,"tag":85,"props":1369,"children":1370},{"class":87,"line":133},[1371,1375,1379,1383,1387,1391,1395],{"type":50,"tag":85,"props":1372,"children":1373},{"style":137},[1374],{"type":56,"value":140},{"type":50,"tag":85,"props":1376,"children":1377},{"style":149},[1378],{"type":56,"value":195},{"type":50,"tag":85,"props":1380,"children":1381},{"style":137},[1382],{"type":56,"value":200},{"type":50,"tag":85,"props":1384,"children":1385},{"style":143},[1386],{"type":56,"value":167},{"type":50,"tag":85,"props":1388,"children":1389},{"style":98},[1390],{"type":56,"value":4},{"type":50,"tag":85,"props":1392,"children":1393},{"style":143},[1394],{"type":56,"value":177},{"type":50,"tag":85,"props":1396,"children":1397},{"style":143},[1398],{"type":56,"value":182},{"type":50,"tag":85,"props":1400,"children":1401},{"class":87,"line":185},[1402,1406,1410,1414,1418,1422,1426,1430,1434,1438],{"type":50,"tag":85,"props":1403,"children":1404},{"style":137},[1405],{"type":56,"value":140},{"type":50,"tag":85,"props":1407,"children":1408},{"style":137},[1409],{"type":56,"value":516},{"type":50,"tag":85,"props":1411,"children":1412},{"style":143},[1413],{"type":56,"value":146},{"type":50,"tag":85,"props":1415,"children":1416},{"style":149},[1417],{"type":56,"value":525},{"type":50,"tag":85,"props":1419,"children":1420},{"style":143},[1421],{"type":56,"value":157},{"type":50,"tag":85,"props":1423,"children":1424},{"style":137},[1425],{"type":56,"value":162},{"type":50,"tag":85,"props":1427,"children":1428},{"style":143},[1429],{"type":56,"value":167},{"type":50,"tag":85,"props":1431,"children":1432},{"style":98},[1433],{"type":56,"value":542},{"type":50,"tag":85,"props":1435,"children":1436},{"style":143},[1437],{"type":56,"value":177},{"type":50,"tag":85,"props":1439,"children":1440},{"style":143},[1441],{"type":56,"value":182},{"type":50,"tag":85,"props":1443,"children":1444},{"class":87,"line":219},[1445],{"type":50,"tag":85,"props":1446,"children":1447},{"emptyLinePlaceholder":223},[1448],{"type":56,"value":226},{"type":50,"tag":85,"props":1450,"children":1451},{"class":87,"line":229},[1452,1456,1461,1465,1469,1473],{"type":50,"tag":85,"props":1453,"children":1454},{"style":233},[1455],{"type":56,"value":236},{"type":50,"tag":85,"props":1457,"children":1458},{"style":149},[1459],{"type":56,"value":1460}," wsClient ",{"type":50,"tag":85,"props":1462,"children":1463},{"style":143},[1464],{"type":56,"value":246},{"type":50,"tag":85,"props":1466,"children":1467},{"style":258},[1468],{"type":56,"value":1334},{"type":50,"tag":85,"props":1470,"children":1471},{"style":149},[1472],{"type":56,"value":266},{"type":50,"tag":85,"props":1474,"children":1475},{"style":143},[1476],{"type":56,"value":271},{"type":50,"tag":85,"props":1478,"children":1479},{"class":87,"line":274},[1480,1485,1489,1493,1498,1502],{"type":50,"tag":85,"props":1481,"children":1482},{"style":278},[1483],{"type":56,"value":1484},"  url",{"type":50,"tag":85,"props":1486,"children":1487},{"style":143},[1488],{"type":56,"value":286},{"type":50,"tag":85,"props":1490,"children":1491},{"style":143},[1492],{"type":56,"value":167},{"type":50,"tag":85,"props":1494,"children":1495},{"style":98},[1496],{"type":56,"value":1497},"ws:\u002F\u002Flocalhost:3000",{"type":50,"tag":85,"props":1499,"children":1500},{"style":143},[1501],{"type":56,"value":177},{"type":50,"tag":85,"props":1503,"children":1504},{"style":143},[1505],{"type":56,"value":296},{"type":50,"tag":85,"props":1507,"children":1508},{"class":87,"line":299},[1509,1513,1517],{"type":50,"tag":85,"props":1510,"children":1511},{"style":143},[1512],{"type":56,"value":305},{"type":50,"tag":85,"props":1514,"children":1515},{"style":149},[1516],{"type":56,"value":310},{"type":50,"tag":85,"props":1518,"children":1519},{"style":143},[1520],{"type":56,"value":182},{"type":50,"tag":85,"props":1522,"children":1523},{"class":87,"line":317},[1524],{"type":50,"tag":85,"props":1525,"children":1526},{"emptyLinePlaceholder":223},[1527],{"type":56,"value":226},{"type":50,"tag":85,"props":1529,"children":1530},{"class":87,"line":325},[1531,1535,1539,1543,1547,1551,1555,1559,1563],{"type":50,"tag":85,"props":1532,"children":1533},{"style":233},[1534],{"type":56,"value":236},{"type":50,"tag":85,"props":1536,"children":1537},{"style":149},[1538],{"type":56,"value":569},{"type":50,"tag":85,"props":1540,"children":1541},{"style":143},[1542],{"type":56,"value":246},{"type":50,"tag":85,"props":1544,"children":1545},{"style":258},[1546],{"type":56,"value":438},{"type":50,"tag":85,"props":1548,"children":1549},{"style":143},[1550],{"type":56,"value":582},{"type":50,"tag":85,"props":1552,"children":1553},{"style":92},[1554],{"type":56,"value":587},{"type":50,"tag":85,"props":1556,"children":1557},{"style":143},[1558],{"type":56,"value":592},{"type":50,"tag":85,"props":1560,"children":1561},{"style":149},[1562],{"type":56,"value":266},{"type":50,"tag":85,"props":1564,"children":1565},{"style":143},[1566],{"type":56,"value":271},{"type":50,"tag":85,"props":1568,"children":1569},{"class":87,"line":366},[1570,1574,1578],{"type":50,"tag":85,"props":1571,"children":1572},{"style":278},[1573],{"type":56,"value":608},{"type":50,"tag":85,"props":1575,"children":1576},{"style":143},[1577],{"type":56,"value":286},{"type":50,"tag":85,"props":1579,"children":1580},{"style":149},[1581],{"type":56,"value":617},{"type":50,"tag":85,"props":1583,"children":1584},{"class":87,"line":685},[1585,1590,1594,1598,1602,1606],{"type":50,"tag":85,"props":1586,"children":1587},{"style":258},[1588],{"type":56,"value":1589},"    wsLink",{"type":50,"tag":85,"props":1591,"children":1592},{"style":143},[1593],{"type":56,"value":582},{"type":50,"tag":85,"props":1595,"children":1596},{"style":92},[1597],{"type":56,"value":587},{"type":50,"tag":85,"props":1599,"children":1600},{"style":143},[1601],{"type":56,"value":592},{"type":50,"tag":85,"props":1603,"children":1604},{"style":149},[1605],{"type":56,"value":266},{"type":50,"tag":85,"props":1607,"children":1608},{"style":143},[1609],{"type":56,"value":271},{"type":50,"tag":85,"props":1611,"children":1612},{"class":87,"line":702},[1613,1618,1622,1627],{"type":50,"tag":85,"props":1614,"children":1615},{"style":278},[1616],{"type":56,"value":1617},"      client",{"type":50,"tag":85,"props":1619,"children":1620},{"style":143},[1621],{"type":56,"value":286},{"type":50,"tag":85,"props":1623,"children":1624},{"style":149},[1625],{"type":56,"value":1626}," wsClient",{"type":50,"tag":85,"props":1628,"children":1629},{"style":143},[1630],{"type":56,"value":296},{"type":50,"tag":85,"props":1632,"children":1633},{"class":87,"line":715},[1634,1638,1642,1646],{"type":50,"tag":85,"props":1635,"children":1636},{"style":278},[1637],{"type":56,"value":670},{"type":50,"tag":85,"props":1639,"children":1640},{"style":143},[1641],{"type":56,"value":286},{"type":50,"tag":85,"props":1643,"children":1644},{"style":149},[1645],{"type":56,"value":291},{"type":50,"tag":85,"props":1647,"children":1648},{"style":143},[1649],{"type":56,"value":296},{"type":50,"tag":85,"props":1651,"children":1652},{"class":87,"line":1062},[1653,1657,1661],{"type":50,"tag":85,"props":1654,"children":1655},{"style":143},[1656],{"type":56,"value":691},{"type":50,"tag":85,"props":1658,"children":1659},{"style":149},[1660],{"type":56,"value":310},{"type":50,"tag":85,"props":1662,"children":1663},{"style":143},[1664],{"type":56,"value":296},{"type":50,"tag":85,"props":1666,"children":1667},{"class":87,"line":1088},[1668,1672],{"type":50,"tag":85,"props":1669,"children":1670},{"style":149},[1671],{"type":56,"value":708},{"type":50,"tag":85,"props":1673,"children":1674},{"style":143},[1675],{"type":56,"value":296},{"type":50,"tag":85,"props":1677,"children":1678},{"class":87,"line":1117},[1679,1683,1687],{"type":50,"tag":85,"props":1680,"children":1681},{"style":143},[1682],{"type":56,"value":305},{"type":50,"tag":85,"props":1684,"children":1685},{"style":149},[1686],{"type":56,"value":310},{"type":50,"tag":85,"props":1688,"children":1689},{"style":143},[1690],{"type":56,"value":182},{"type":50,"tag":66,"props":1692,"children":1694},{"id":1693},"returning-dates-from-procedures",[1695],{"type":56,"value":1696},"Returning Dates from Procedures",{"type":50,"tag":73,"props":1698,"children":1700},{"className":115,"code":1699,"language":117,"meta":78,"style":78},"\u002F\u002F server\nimport { z } from 'zod';\nimport { publicProcedure, router } from '.\u002Ftrpc';\n\nconst appRouter = router({\n  getEvent: publicProcedure\n    .input(z.object({ id: z.string() }))\n    .query(({ input }) => {\n      return {\n        id: input.id,\n        name: 'Launch Party',\n        date: new Date('2025-01-01T00:00:00Z'),\n      };\n    }),\n});\n\nexport type AppRouter = typeof appRouter;\n",[1701],{"type":50,"tag":81,"props":1702,"children":1703},{"__ignoreMap":78},[1704,1712,1753,1803,1810,1838,1855,1927,1966,1978,2007,2036,2083,2091,2106,2121,2128],{"type":50,"tag":85,"props":1705,"children":1706},{"class":87,"line":88},[1707],{"type":50,"tag":85,"props":1708,"children":1709},{"style":127},[1710],{"type":56,"value":1711},"\u002F\u002F server\n",{"type":50,"tag":85,"props":1713,"children":1714},{"class":87,"line":133},[1715,1719,1723,1728,1732,1736,1740,1745,1749],{"type":50,"tag":85,"props":1716,"children":1717},{"style":137},[1718],{"type":56,"value":140},{"type":50,"tag":85,"props":1720,"children":1721},{"style":143},[1722],{"type":56,"value":146},{"type":50,"tag":85,"props":1724,"children":1725},{"style":149},[1726],{"type":56,"value":1727}," z",{"type":50,"tag":85,"props":1729,"children":1730},{"style":143},[1731],{"type":56,"value":157},{"type":50,"tag":85,"props":1733,"children":1734},{"style":137},[1735],{"type":56,"value":162},{"type":50,"tag":85,"props":1737,"children":1738},{"style":143},[1739],{"type":56,"value":167},{"type":50,"tag":85,"props":1741,"children":1742},{"style":98},[1743],{"type":56,"value":1744},"zod",{"type":50,"tag":85,"props":1746,"children":1747},{"style":143},[1748],{"type":56,"value":177},{"type":50,"tag":85,"props":1750,"children":1751},{"style":143},[1752],{"type":56,"value":182},{"type":50,"tag":85,"props":1754,"children":1755},{"class":87,"line":185},[1756,1760,1764,1769,1773,1778,1782,1786,1790,1795,1799],{"type":50,"tag":85,"props":1757,"children":1758},{"style":137},[1759],{"type":56,"value":140},{"type":50,"tag":85,"props":1761,"children":1762},{"style":143},[1763],{"type":56,"value":146},{"type":50,"tag":85,"props":1765,"children":1766},{"style":149},[1767],{"type":56,"value":1768}," publicProcedure",{"type":50,"tag":85,"props":1770,"children":1771},{"style":143},[1772],{"type":56,"value":443},{"type":50,"tag":85,"props":1774,"children":1775},{"style":149},[1776],{"type":56,"value":1777}," router",{"type":50,"tag":85,"props":1779,"children":1780},{"style":143},[1781],{"type":56,"value":157},{"type":50,"tag":85,"props":1783,"children":1784},{"style":137},[1785],{"type":56,"value":162},{"type":50,"tag":85,"props":1787,"children":1788},{"style":143},[1789],{"type":56,"value":167},{"type":50,"tag":85,"props":1791,"children":1792},{"style":98},[1793],{"type":56,"value":1794},".\u002Ftrpc",{"type":50,"tag":85,"props":1796,"children":1797},{"style":143},[1798],{"type":56,"value":177},{"type":50,"tag":85,"props":1800,"children":1801},{"style":143},[1802],{"type":56,"value":182},{"type":50,"tag":85,"props":1804,"children":1805},{"class":87,"line":219},[1806],{"type":50,"tag":85,"props":1807,"children":1808},{"emptyLinePlaceholder":223},[1809],{"type":56,"value":226},{"type":50,"tag":85,"props":1811,"children":1812},{"class":87,"line":229},[1813,1817,1822,1826,1830,1834],{"type":50,"tag":85,"props":1814,"children":1815},{"style":233},[1816],{"type":56,"value":236},{"type":50,"tag":85,"props":1818,"children":1819},{"style":149},[1820],{"type":56,"value":1821}," appRouter ",{"type":50,"tag":85,"props":1823,"children":1824},{"style":143},[1825],{"type":56,"value":246},{"type":50,"tag":85,"props":1827,"children":1828},{"style":258},[1829],{"type":56,"value":1777},{"type":50,"tag":85,"props":1831,"children":1832},{"style":149},[1833],{"type":56,"value":266},{"type":50,"tag":85,"props":1835,"children":1836},{"style":143},[1837],{"type":56,"value":271},{"type":50,"tag":85,"props":1839,"children":1840},{"class":87,"line":274},[1841,1846,1850],{"type":50,"tag":85,"props":1842,"children":1843},{"style":278},[1844],{"type":56,"value":1845},"  getEvent",{"type":50,"tag":85,"props":1847,"children":1848},{"style":143},[1849],{"type":56,"value":286},{"type":50,"tag":85,"props":1851,"children":1852},{"style":149},[1853],{"type":56,"value":1854}," publicProcedure\n",{"type":50,"tag":85,"props":1856,"children":1857},{"class":87,"line":299},[1858,1863,1868,1873,1877,1882,1886,1891,1896,1900,1904,1908,1913,1918,1922],{"type":50,"tag":85,"props":1859,"children":1860},{"style":143},[1861],{"type":56,"value":1862},"    .",{"type":50,"tag":85,"props":1864,"children":1865},{"style":258},[1866],{"type":56,"value":1867},"input",{"type":50,"tag":85,"props":1869,"children":1870},{"style":149},[1871],{"type":56,"value":1872},"(z",{"type":50,"tag":85,"props":1874,"children":1875},{"style":143},[1876],{"type":56,"value":255},{"type":50,"tag":85,"props":1878,"children":1879},{"style":258},[1880],{"type":56,"value":1881},"object",{"type":50,"tag":85,"props":1883,"children":1884},{"style":149},[1885],{"type":56,"value":266},{"type":50,"tag":85,"props":1887,"children":1888},{"style":143},[1889],{"type":56,"value":1890},"{",{"type":50,"tag":85,"props":1892,"children":1893},{"style":278},[1894],{"type":56,"value":1895}," id",{"type":50,"tag":85,"props":1897,"children":1898},{"style":143},[1899],{"type":56,"value":286},{"type":50,"tag":85,"props":1901,"children":1902},{"style":149},[1903],{"type":56,"value":1727},{"type":50,"tag":85,"props":1905,"children":1906},{"style":143},[1907],{"type":56,"value":255},{"type":50,"tag":85,"props":1909,"children":1910},{"style":258},[1911],{"type":56,"value":1912},"string",{"type":50,"tag":85,"props":1914,"children":1915},{"style":149},[1916],{"type":56,"value":1917},"() ",{"type":50,"tag":85,"props":1919,"children":1920},{"style":143},[1921],{"type":56,"value":305},{"type":50,"tag":85,"props":1923,"children":1924},{"style":149},[1925],{"type":56,"value":1926},"))\n",{"type":50,"tag":85,"props":1928,"children":1929},{"class":87,"line":317},[1930,1934,1939,1943,1948,1953,1958,1962],{"type":50,"tag":85,"props":1931,"children":1932},{"style":143},[1933],{"type":56,"value":1862},{"type":50,"tag":85,"props":1935,"children":1936},{"style":258},[1937],{"type":56,"value":1938},"query",{"type":50,"tag":85,"props":1940,"children":1941},{"style":149},[1942],{"type":56,"value":266},{"type":50,"tag":85,"props":1944,"children":1945},{"style":143},[1946],{"type":56,"value":1947},"({",{"type":50,"tag":85,"props":1949,"children":1950},{"style":1011},[1951],{"type":56,"value":1952}," input",{"type":50,"tag":85,"props":1954,"children":1955},{"style":143},[1956],{"type":56,"value":1957}," })",{"type":50,"tag":85,"props":1959,"children":1960},{"style":233},[1961],{"type":56,"value":1023},{"type":50,"tag":85,"props":1963,"children":1964},{"style":143},[1965],{"type":56,"value":765},{"type":50,"tag":85,"props":1967,"children":1968},{"class":87,"line":325},[1969,1974],{"type":50,"tag":85,"props":1970,"children":1971},{"style":137},[1972],{"type":56,"value":1973},"      return",{"type":50,"tag":85,"props":1975,"children":1976},{"style":143},[1977],{"type":56,"value":765},{"type":50,"tag":85,"props":1979,"children":1980},{"class":87,"line":366},[1981,1986,1990,1994,1998,2003],{"type":50,"tag":85,"props":1982,"children":1983},{"style":278},[1984],{"type":56,"value":1985},"        id",{"type":50,"tag":85,"props":1987,"children":1988},{"style":143},[1989],{"type":56,"value":286},{"type":50,"tag":85,"props":1991,"children":1992},{"style":149},[1993],{"type":56,"value":1952},{"type":50,"tag":85,"props":1995,"children":1996},{"style":143},[1997],{"type":56,"value":255},{"type":50,"tag":85,"props":1999,"children":2000},{"style":149},[2001],{"type":56,"value":2002},"id",{"type":50,"tag":85,"props":2004,"children":2005},{"style":143},[2006],{"type":56,"value":296},{"type":50,"tag":85,"props":2008,"children":2009},{"class":87,"line":685},[2010,2015,2019,2023,2028,2032],{"type":50,"tag":85,"props":2011,"children":2012},{"style":278},[2013],{"type":56,"value":2014},"        name",{"type":50,"tag":85,"props":2016,"children":2017},{"style":143},[2018],{"type":56,"value":286},{"type":50,"tag":85,"props":2020,"children":2021},{"style":143},[2022],{"type":56,"value":167},{"type":50,"tag":85,"props":2024,"children":2025},{"style":98},[2026],{"type":56,"value":2027},"Launch Party",{"type":50,"tag":85,"props":2029,"children":2030},{"style":143},[2031],{"type":56,"value":177},{"type":50,"tag":85,"props":2033,"children":2034},{"style":143},[2035],{"type":56,"value":296},{"type":50,"tag":85,"props":2037,"children":2038},{"class":87,"line":702},[2039,2044,2048,2053,2058,2062,2066,2071,2075,2079],{"type":50,"tag":85,"props":2040,"children":2041},{"style":278},[2042],{"type":56,"value":2043},"        date",{"type":50,"tag":85,"props":2045,"children":2046},{"style":143},[2047],{"type":56,"value":286},{"type":50,"tag":85,"props":2049,"children":2050},{"style":143},[2051],{"type":56,"value":2052}," new",{"type":50,"tag":85,"props":2054,"children":2055},{"style":258},[2056],{"type":56,"value":2057}," Date",{"type":50,"tag":85,"props":2059,"children":2060},{"style":278},[2061],{"type":56,"value":266},{"type":50,"tag":85,"props":2063,"children":2064},{"style":143},[2065],{"type":56,"value":177},{"type":50,"tag":85,"props":2067,"children":2068},{"style":98},[2069],{"type":56,"value":2070},"2025-01-01T00:00:00Z",{"type":50,"tag":85,"props":2072,"children":2073},{"style":143},[2074],{"type":56,"value":177},{"type":50,"tag":85,"props":2076,"children":2077},{"style":278},[2078],{"type":56,"value":310},{"type":50,"tag":85,"props":2080,"children":2081},{"style":143},[2082],{"type":56,"value":296},{"type":50,"tag":85,"props":2084,"children":2085},{"class":87,"line":715},[2086],{"type":50,"tag":85,"props":2087,"children":2088},{"style":143},[2089],{"type":56,"value":2090},"      };\n",{"type":50,"tag":85,"props":2092,"children":2093},{"class":87,"line":1062},[2094,2098,2102],{"type":50,"tag":85,"props":2095,"children":2096},{"style":143},[2097],{"type":56,"value":691},{"type":50,"tag":85,"props":2099,"children":2100},{"style":149},[2101],{"type":56,"value":310},{"type":50,"tag":85,"props":2103,"children":2104},{"style":143},[2105],{"type":56,"value":296},{"type":50,"tag":85,"props":2107,"children":2108},{"class":87,"line":1088},[2109,2113,2117],{"type":50,"tag":85,"props":2110,"children":2111},{"style":143},[2112],{"type":56,"value":305},{"type":50,"tag":85,"props":2114,"children":2115},{"style":149},[2116],{"type":56,"value":310},{"type":50,"tag":85,"props":2118,"children":2119},{"style":143},[2120],{"type":56,"value":182},{"type":50,"tag":85,"props":2122,"children":2123},{"class":87,"line":1117},[2124],{"type":50,"tag":85,"props":2125,"children":2126},{"emptyLinePlaceholder":223},[2127],{"type":56,"value":226},{"type":50,"tag":85,"props":2129,"children":2130},{"class":87,"line":1138},[2131,2135,2139,2143,2148,2153,2158],{"type":50,"tag":85,"props":2132,"children":2133},{"style":137},[2134],{"type":56,"value":331},{"type":50,"tag":85,"props":2136,"children":2137},{"style":233},[2138],{"type":56,"value":516},{"type":50,"tag":85,"props":2140,"children":2141},{"style":92},[2142],{"type":56,"value":525},{"type":50,"tag":85,"props":2144,"children":2145},{"style":143},[2146],{"type":56,"value":2147}," =",{"type":50,"tag":85,"props":2149,"children":2150},{"style":143},[2151],{"type":56,"value":2152}," typeof",{"type":50,"tag":85,"props":2154,"children":2155},{"style":149},[2156],{"type":56,"value":2157}," appRouter",{"type":50,"tag":85,"props":2159,"children":2160},{"style":143},[2161],{"type":56,"value":182},{"type":50,"tag":73,"props":2163,"children":2165},{"className":115,"code":2164,"language":117,"meta":78,"style":78},"\u002F\u002F client\nconst event = await client.getEvent.query({ id: '1' });\nconsole.log(event.date instanceof Date); \u002F\u002F true\nconsole.log(event.date.getFullYear()); \u002F\u002F 2025\n",[2166],{"type":50,"tag":81,"props":2167,"children":2168},{"__ignoreMap":78},[2169,2177,2261,2315],{"type":50,"tag":85,"props":2170,"children":2171},{"class":87,"line":88},[2172],{"type":50,"tag":85,"props":2173,"children":2174},{"style":127},[2175],{"type":56,"value":2176},"\u002F\u002F client\n",{"type":50,"tag":85,"props":2178,"children":2179},{"class":87,"line":133},[2180,2184,2189,2193,2198,2203,2207,2212,2216,2220,2224,2228,2232,2236,2240,2245,2249,2253,2257],{"type":50,"tag":85,"props":2181,"children":2182},{"style":233},[2183],{"type":56,"value":236},{"type":50,"tag":85,"props":2185,"children":2186},{"style":149},[2187],{"type":56,"value":2188}," event ",{"type":50,"tag":85,"props":2190,"children":2191},{"style":143},[2192],{"type":56,"value":246},{"type":50,"tag":85,"props":2194,"children":2195},{"style":137},[2196],{"type":56,"value":2197}," await",{"type":50,"tag":85,"props":2199,"children":2200},{"style":149},[2201],{"type":56,"value":2202}," client",{"type":50,"tag":85,"props":2204,"children":2205},{"style":143},[2206],{"type":56,"value":255},{"type":50,"tag":85,"props":2208,"children":2209},{"style":149},[2210],{"type":56,"value":2211},"getEvent",{"type":50,"tag":85,"props":2213,"children":2214},{"style":143},[2215],{"type":56,"value":255},{"type":50,"tag":85,"props":2217,"children":2218},{"style":258},[2219],{"type":56,"value":1938},{"type":50,"tag":85,"props":2221,"children":2222},{"style":149},[2223],{"type":56,"value":266},{"type":50,"tag":85,"props":2225,"children":2226},{"style":143},[2227],{"type":56,"value":1890},{"type":50,"tag":85,"props":2229,"children":2230},{"style":278},[2231],{"type":56,"value":1895},{"type":50,"tag":85,"props":2233,"children":2234},{"style":143},[2235],{"type":56,"value":286},{"type":50,"tag":85,"props":2237,"children":2238},{"style":143},[2239],{"type":56,"value":167},{"type":50,"tag":85,"props":2241,"children":2242},{"style":98},[2243],{"type":56,"value":2244},"1",{"type":50,"tag":85,"props":2246,"children":2247},{"style":143},[2248],{"type":56,"value":177},{"type":50,"tag":85,"props":2250,"children":2251},{"style":143},[2252],{"type":56,"value":157},{"type":50,"tag":85,"props":2254,"children":2255},{"style":149},[2256],{"type":56,"value":310},{"type":50,"tag":85,"props":2258,"children":2259},{"style":143},[2260],{"type":56,"value":182},{"type":50,"tag":85,"props":2262,"children":2263},{"class":87,"line":185},[2264,2269,2273,2278,2283,2287,2292,2297,2301,2305,2310],{"type":50,"tag":85,"props":2265,"children":2266},{"style":149},[2267],{"type":56,"value":2268},"console",{"type":50,"tag":85,"props":2270,"children":2271},{"style":143},[2272],{"type":56,"value":255},{"type":50,"tag":85,"props":2274,"children":2275},{"style":258},[2276],{"type":56,"value":2277},"log",{"type":50,"tag":85,"props":2279,"children":2280},{"style":149},[2281],{"type":56,"value":2282},"(event",{"type":50,"tag":85,"props":2284,"children":2285},{"style":143},[2286],{"type":56,"value":255},{"type":50,"tag":85,"props":2288,"children":2289},{"style":149},[2290],{"type":56,"value":2291},"date ",{"type":50,"tag":85,"props":2293,"children":2294},{"style":143},[2295],{"type":56,"value":2296},"instanceof",{"type":50,"tag":85,"props":2298,"children":2299},{"style":92},[2300],{"type":56,"value":2057},{"type":50,"tag":85,"props":2302,"children":2303},{"style":149},[2304],{"type":56,"value":310},{"type":50,"tag":85,"props":2306,"children":2307},{"style":143},[2308],{"type":56,"value":2309},";",{"type":50,"tag":85,"props":2311,"children":2312},{"style":127},[2313],{"type":56,"value":2314}," \u002F\u002F true\n",{"type":50,"tag":85,"props":2316,"children":2317},{"class":87,"line":219},[2318,2322,2326,2330,2334,2338,2343,2347,2352,2357,2361],{"type":50,"tag":85,"props":2319,"children":2320},{"style":149},[2321],{"type":56,"value":2268},{"type":50,"tag":85,"props":2323,"children":2324},{"style":143},[2325],{"type":56,"value":255},{"type":50,"tag":85,"props":2327,"children":2328},{"style":258},[2329],{"type":56,"value":2277},{"type":50,"tag":85,"props":2331,"children":2332},{"style":149},[2333],{"type":56,"value":2282},{"type":50,"tag":85,"props":2335,"children":2336},{"style":143},[2337],{"type":56,"value":255},{"type":50,"tag":85,"props":2339,"children":2340},{"style":149},[2341],{"type":56,"value":2342},"date",{"type":50,"tag":85,"props":2344,"children":2345},{"style":143},[2346],{"type":56,"value":255},{"type":50,"tag":85,"props":2348,"children":2349},{"style":258},[2350],{"type":56,"value":2351},"getFullYear",{"type":50,"tag":85,"props":2353,"children":2354},{"style":149},[2355],{"type":56,"value":2356},"())",{"type":50,"tag":85,"props":2358,"children":2359},{"style":143},[2360],{"type":56,"value":2309},{"type":50,"tag":85,"props":2362,"children":2363},{"style":127},[2364],{"type":56,"value":2365}," \u002F\u002F 2025\n",{"type":50,"tag":730,"props":2367,"children":2368},{},[2369,2371,2377,2379,2385],{"type":56,"value":2370},"Without superjson, ",{"type":50,"tag":81,"props":2372,"children":2374},{"className":2373},[],[2375],{"type":56,"value":2376},"event.date",{"type":56,"value":2378}," would be a string like ",{"type":50,"tag":81,"props":2380,"children":2382},{"className":2381},[],[2383],{"type":56,"value":2384},"\"2025-01-01T00:00:00.000Z\"",{"type":56,"value":255},{"type":50,"tag":59,"props":2387,"children":2389},{"id":2388},"common-mistakes",[2390],{"type":56,"value":2391},"Common Mistakes",{"type":50,"tag":66,"props":2393,"children":2395},{"id":2394},"critical-transformer-on-server-but-missing-from-client-link",[2396,2401],{"type":50,"tag":85,"props":2397,"children":2398},{},[2399],{"type":56,"value":2400},"CRITICAL",{"type":56,"value":2402}," Transformer on server but missing from client link",{"type":50,"tag":730,"props":2404,"children":2405},{},[2406],{"type":56,"value":2407},"Wrong:",{"type":50,"tag":73,"props":2409,"children":2411},{"className":115,"code":2410,"language":117,"meta":78,"style":78},"\u002F\u002F Server\nconst t = initTRPC.create({ transformer: superjson });\n\n\u002F\u002F Client\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' })],\n});\n",[2412],{"type":50,"tag":81,"props":2413,"children":2414},{"__ignoreMap":78},[2415,2423,2483,2490,2498,2537,2600],{"type":50,"tag":85,"props":2416,"children":2417},{"class":87,"line":88},[2418],{"type":50,"tag":85,"props":2419,"children":2420},{"style":127},[2421],{"type":56,"value":2422},"\u002F\u002F Server\n",{"type":50,"tag":85,"props":2424,"children":2425},{"class":87,"line":133},[2426,2430,2434,2438,2442,2446,2450,2454,2458,2463,2467,2471,2475,2479],{"type":50,"tag":85,"props":2427,"children":2428},{"style":233},[2429],{"type":56,"value":236},{"type":50,"tag":85,"props":2431,"children":2432},{"style":149},[2433],{"type":56,"value":241},{"type":50,"tag":85,"props":2435,"children":2436},{"style":143},[2437],{"type":56,"value":246},{"type":50,"tag":85,"props":2439,"children":2440},{"style":149},[2441],{"type":56,"value":152},{"type":50,"tag":85,"props":2443,"children":2444},{"style":143},[2445],{"type":56,"value":255},{"type":50,"tag":85,"props":2447,"children":2448},{"style":258},[2449],{"type":56,"value":261},{"type":50,"tag":85,"props":2451,"children":2452},{"style":149},[2453],{"type":56,"value":266},{"type":50,"tag":85,"props":2455,"children":2456},{"style":143},[2457],{"type":56,"value":1890},{"type":50,"tag":85,"props":2459,"children":2460},{"style":278},[2461],{"type":56,"value":2462}," transformer",{"type":50,"tag":85,"props":2464,"children":2465},{"style":143},[2466],{"type":56,"value":286},{"type":50,"tag":85,"props":2468,"children":2469},{"style":149},[2470],{"type":56,"value":195},{"type":50,"tag":85,"props":2472,"children":2473},{"style":143},[2474],{"type":56,"value":305},{"type":50,"tag":85,"props":2476,"children":2477},{"style":149},[2478],{"type":56,"value":310},{"type":50,"tag":85,"props":2480,"children":2481},{"style":143},[2482],{"type":56,"value":182},{"type":50,"tag":85,"props":2484,"children":2485},{"class":87,"line":185},[2486],{"type":50,"tag":85,"props":2487,"children":2488},{"emptyLinePlaceholder":223},[2489],{"type":56,"value":226},{"type":50,"tag":85,"props":2491,"children":2492},{"class":87,"line":219},[2493],{"type":50,"tag":85,"props":2494,"children":2495},{"style":127},[2496],{"type":56,"value":2497},"\u002F\u002F Client\n",{"type":50,"tag":85,"props":2499,"children":2500},{"class":87,"line":229},[2501,2505,2509,2513,2517,2521,2525,2529,2533],{"type":50,"tag":85,"props":2502,"children":2503},{"style":233},[2504],{"type":56,"value":236},{"type":50,"tag":85,"props":2506,"children":2507},{"style":149},[2508],{"type":56,"value":569},{"type":50,"tag":85,"props":2510,"children":2511},{"style":143},[2512],{"type":56,"value":246},{"type":50,"tag":85,"props":2514,"children":2515},{"style":258},[2516],{"type":56,"value":438},{"type":50,"tag":85,"props":2518,"children":2519},{"style":143},[2520],{"type":56,"value":582},{"type":50,"tag":85,"props":2522,"children":2523},{"style":92},[2524],{"type":56,"value":587},{"type":50,"tag":85,"props":2526,"children":2527},{"style":143},[2528],{"type":56,"value":592},{"type":50,"tag":85,"props":2530,"children":2531},{"style":149},[2532],{"type":56,"value":266},{"type":50,"tag":85,"props":2534,"children":2535},{"style":143},[2536],{"type":56,"value":271},{"type":50,"tag":85,"props":2538,"children":2539},{"class":87,"line":274},[2540,2544,2548,2553,2558,2562,2566,2571,2575,2579,2583,2587,2591,2596],{"type":50,"tag":85,"props":2541,"children":2542},{"style":278},[2543],{"type":56,"value":608},{"type":50,"tag":85,"props":2545,"children":2546},{"style":143},[2547],{"type":56,"value":286},{"type":50,"tag":85,"props":2549,"children":2550},{"style":149},[2551],{"type":56,"value":2552}," [",{"type":50,"tag":85,"props":2554,"children":2555},{"style":258},[2556],{"type":56,"value":2557},"httpBatchLink",{"type":50,"tag":85,"props":2559,"children":2560},{"style":149},[2561],{"type":56,"value":266},{"type":50,"tag":85,"props":2563,"children":2564},{"style":143},[2565],{"type":56,"value":1890},{"type":50,"tag":85,"props":2567,"children":2568},{"style":278},[2569],{"type":56,"value":2570}," url",{"type":50,"tag":85,"props":2572,"children":2573},{"style":143},[2574],{"type":56,"value":286},{"type":50,"tag":85,"props":2576,"children":2577},{"style":143},[2578],{"type":56,"value":167},{"type":50,"tag":85,"props":2580,"children":2581},{"style":98},[2582],{"type":56,"value":654},{"type":50,"tag":85,"props":2584,"children":2585},{"style":143},[2586],{"type":56,"value":177},{"type":50,"tag":85,"props":2588,"children":2589},{"style":143},[2590],{"type":56,"value":157},{"type":50,"tag":85,"props":2592,"children":2593},{"style":149},[2594],{"type":56,"value":2595},")]",{"type":50,"tag":85,"props":2597,"children":2598},{"style":143},[2599],{"type":56,"value":296},{"type":50,"tag":85,"props":2601,"children":2602},{"class":87,"line":299},[2603,2607,2611],{"type":50,"tag":85,"props":2604,"children":2605},{"style":143},[2606],{"type":56,"value":305},{"type":50,"tag":85,"props":2608,"children":2609},{"style":149},[2610],{"type":56,"value":310},{"type":50,"tag":85,"props":2612,"children":2613},{"style":143},[2614],{"type":56,"value":182},{"type":50,"tag":730,"props":2616,"children":2617},{},[2618],{"type":56,"value":2619},"Correct:",{"type":50,"tag":73,"props":2621,"children":2623},{"className":115,"code":2622,"language":117,"meta":78,"style":78},"\u002F\u002F Server\nconst t = initTRPC.create({ transformer: superjson });\n\n\u002F\u002F Client\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      transformer: superjson,\n    }),\n  ],\n});\n",[2624],{"type":50,"tag":81,"props":2625,"children":2626},{"__ignoreMap":78},[2627,2634,2693,2700,2707,2746,2761,2776,2803,2822,2837,2848],{"type":50,"tag":85,"props":2628,"children":2629},{"class":87,"line":88},[2630],{"type":50,"tag":85,"props":2631,"children":2632},{"style":127},[2633],{"type":56,"value":2422},{"type":50,"tag":85,"props":2635,"children":2636},{"class":87,"line":133},[2637,2641,2645,2649,2653,2657,2661,2665,2669,2673,2677,2681,2685,2689],{"type":50,"tag":85,"props":2638,"children":2639},{"style":233},[2640],{"type":56,"value":236},{"type":50,"tag":85,"props":2642,"children":2643},{"style":149},[2644],{"type":56,"value":241},{"type":50,"tag":85,"props":2646,"children":2647},{"style":143},[2648],{"type":56,"value":246},{"type":50,"tag":85,"props":2650,"children":2651},{"style":149},[2652],{"type":56,"value":152},{"type":50,"tag":85,"props":2654,"children":2655},{"style":143},[2656],{"type":56,"value":255},{"type":50,"tag":85,"props":2658,"children":2659},{"style":258},[2660],{"type":56,"value":261},{"type":50,"tag":85,"props":2662,"children":2663},{"style":149},[2664],{"type":56,"value":266},{"type":50,"tag":85,"props":2666,"children":2667},{"style":143},[2668],{"type":56,"value":1890},{"type":50,"tag":85,"props":2670,"children":2671},{"style":278},[2672],{"type":56,"value":2462},{"type":50,"tag":85,"props":2674,"children":2675},{"style":143},[2676],{"type":56,"value":286},{"type":50,"tag":85,"props":2678,"children":2679},{"style":149},[2680],{"type":56,"value":195},{"type":50,"tag":85,"props":2682,"children":2683},{"style":143},[2684],{"type":56,"value":305},{"type":50,"tag":85,"props":2686,"children":2687},{"style":149},[2688],{"type":56,"value":310},{"type":50,"tag":85,"props":2690,"children":2691},{"style":143},[2692],{"type":56,"value":182},{"type":50,"tag":85,"props":2694,"children":2695},{"class":87,"line":185},[2696],{"type":50,"tag":85,"props":2697,"children":2698},{"emptyLinePlaceholder":223},[2699],{"type":56,"value":226},{"type":50,"tag":85,"props":2701,"children":2702},{"class":87,"line":219},[2703],{"type":50,"tag":85,"props":2704,"children":2705},{"style":127},[2706],{"type":56,"value":2497},{"type":50,"tag":85,"props":2708,"children":2709},{"class":87,"line":229},[2710,2714,2718,2722,2726,2730,2734,2738,2742],{"type":50,"tag":85,"props":2711,"children":2712},{"style":233},[2713],{"type":56,"value":236},{"type":50,"tag":85,"props":2715,"children":2716},{"style":149},[2717],{"type":56,"value":569},{"type":50,"tag":85,"props":2719,"children":2720},{"style":143},[2721],{"type":56,"value":246},{"type":50,"tag":85,"props":2723,"children":2724},{"style":258},[2725],{"type":56,"value":438},{"type":50,"tag":85,"props":2727,"children":2728},{"style":143},[2729],{"type":56,"value":582},{"type":50,"tag":85,"props":2731,"children":2732},{"style":92},[2733],{"type":56,"value":587},{"type":50,"tag":85,"props":2735,"children":2736},{"style":143},[2737],{"type":56,"value":592},{"type":50,"tag":85,"props":2739,"children":2740},{"style":149},[2741],{"type":56,"value":266},{"type":50,"tag":85,"props":2743,"children":2744},{"style":143},[2745],{"type":56,"value":271},{"type":50,"tag":85,"props":2747,"children":2748},{"class":87,"line":274},[2749,2753,2757],{"type":50,"tag":85,"props":2750,"children":2751},{"style":278},[2752],{"type":56,"value":608},{"type":50,"tag":85,"props":2754,"children":2755},{"style":143},[2756],{"type":56,"value":286},{"type":50,"tag":85,"props":2758,"children":2759},{"style":149},[2760],{"type":56,"value":617},{"type":50,"tag":85,"props":2762,"children":2763},{"class":87,"line":299},[2764,2768,2772],{"type":50,"tag":85,"props":2765,"children":2766},{"style":258},[2767],{"type":56,"value":625},{"type":50,"tag":85,"props":2769,"children":2770},{"style":149},[2771],{"type":56,"value":266},{"type":50,"tag":85,"props":2773,"children":2774},{"style":143},[2775],{"type":56,"value":271},{"type":50,"tag":85,"props":2777,"children":2778},{"class":87,"line":317},[2779,2783,2787,2791,2795,2799],{"type":50,"tag":85,"props":2780,"children":2781},{"style":278},[2782],{"type":56,"value":641},{"type":50,"tag":85,"props":2784,"children":2785},{"style":143},[2786],{"type":56,"value":286},{"type":50,"tag":85,"props":2788,"children":2789},{"style":143},[2790],{"type":56,"value":167},{"type":50,"tag":85,"props":2792,"children":2793},{"style":98},[2794],{"type":56,"value":654},{"type":50,"tag":85,"props":2796,"children":2797},{"style":143},[2798],{"type":56,"value":177},{"type":50,"tag":85,"props":2800,"children":2801},{"style":143},[2802],{"type":56,"value":296},{"type":50,"tag":85,"props":2804,"children":2805},{"class":87,"line":325},[2806,2810,2814,2818],{"type":50,"tag":85,"props":2807,"children":2808},{"style":278},[2809],{"type":56,"value":670},{"type":50,"tag":85,"props":2811,"children":2812},{"style":143},[2813],{"type":56,"value":286},{"type":50,"tag":85,"props":2815,"children":2816},{"style":149},[2817],{"type":56,"value":291},{"type":50,"tag":85,"props":2819,"children":2820},{"style":143},[2821],{"type":56,"value":296},{"type":50,"tag":85,"props":2823,"children":2824},{"class":87,"line":366},[2825,2829,2833],{"type":50,"tag":85,"props":2826,"children":2827},{"style":143},[2828],{"type":56,"value":691},{"type":50,"tag":85,"props":2830,"children":2831},{"style":149},[2832],{"type":56,"value":310},{"type":50,"tag":85,"props":2834,"children":2835},{"style":143},[2836],{"type":56,"value":296},{"type":50,"tag":85,"props":2838,"children":2839},{"class":87,"line":685},[2840,2844],{"type":50,"tag":85,"props":2841,"children":2842},{"style":149},[2843],{"type":56,"value":708},{"type":50,"tag":85,"props":2845,"children":2846},{"style":143},[2847],{"type":56,"value":296},{"type":50,"tag":85,"props":2849,"children":2850},{"class":87,"line":702},[2851,2855,2859],{"type":50,"tag":85,"props":2852,"children":2853},{"style":143},[2854],{"type":56,"value":305},{"type":50,"tag":85,"props":2856,"children":2857},{"style":149},[2858],{"type":56,"value":310},{"type":50,"tag":85,"props":2860,"children":2861},{"style":143},[2862],{"type":56,"value":182},{"type":50,"tag":730,"props":2864,"children":2865},{},[2866],{"type":56,"value":2867},"Server encodes with superjson but client tries to parse raw JSON, causing \"Unable to transform response\" or garbled data.",{"type":50,"tag":730,"props":2869,"children":2870},{},[2871],{"type":56,"value":2872},"Source: www\u002Fdocs\u002Fserver\u002Fdata-transformers.md",{"type":50,"tag":66,"props":2874,"children":2876},{"id":2875},"critical-transformer-goes-on-individual-links-not-createtrpcclient",[2877,2881],{"type":50,"tag":85,"props":2878,"children":2879},{},[2880],{"type":56,"value":2400},{"type":56,"value":2882}," Transformer goes on individual links, not createTRPCClient",{"type":50,"tag":730,"props":2884,"children":2885},{},[2886,2888,2894],{"type":56,"value":2887},"The ",{"type":50,"tag":81,"props":2889,"children":2891},{"className":2890},[],[2892],{"type":56,"value":2893},"transformer",{"type":56,"value":2895}," option is on individual terminating links:",{"type":50,"tag":73,"props":2897,"children":2899},{"className":115,"code":2898,"language":117,"meta":78,"style":78},"createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      transformer: superjson,\n    }),\n  ],\n});\n",[2900],{"type":50,"tag":81,"props":2901,"children":2902},{"__ignoreMap":78},[2903,2931,2946,2961,2988,3007,3022,3033],{"type":50,"tag":85,"props":2904,"children":2905},{"class":87,"line":88},[2906,2911,2915,2919,2923,2927],{"type":50,"tag":85,"props":2907,"children":2908},{"style":258},[2909],{"type":56,"value":2910},"createTRPCClient",{"type":50,"tag":85,"props":2912,"children":2913},{"style":143},[2914],{"type":56,"value":582},{"type":50,"tag":85,"props":2916,"children":2917},{"style":92},[2918],{"type":56,"value":587},{"type":50,"tag":85,"props":2920,"children":2921},{"style":143},[2922],{"type":56,"value":592},{"type":50,"tag":85,"props":2924,"children":2925},{"style":149},[2926],{"type":56,"value":266},{"type":50,"tag":85,"props":2928,"children":2929},{"style":143},[2930],{"type":56,"value":271},{"type":50,"tag":85,"props":2932,"children":2933},{"class":87,"line":133},[2934,2938,2942],{"type":50,"tag":85,"props":2935,"children":2936},{"style":278},[2937],{"type":56,"value":608},{"type":50,"tag":85,"props":2939,"children":2940},{"style":143},[2941],{"type":56,"value":286},{"type":50,"tag":85,"props":2943,"children":2944},{"style":149},[2945],{"type":56,"value":617},{"type":50,"tag":85,"props":2947,"children":2948},{"class":87,"line":185},[2949,2953,2957],{"type":50,"tag":85,"props":2950,"children":2951},{"style":258},[2952],{"type":56,"value":625},{"type":50,"tag":85,"props":2954,"children":2955},{"style":149},[2956],{"type":56,"value":266},{"type":50,"tag":85,"props":2958,"children":2959},{"style":143},[2960],{"type":56,"value":271},{"type":50,"tag":85,"props":2962,"children":2963},{"class":87,"line":219},[2964,2968,2972,2976,2980,2984],{"type":50,"tag":85,"props":2965,"children":2966},{"style":278},[2967],{"type":56,"value":641},{"type":50,"tag":85,"props":2969,"children":2970},{"style":143},[2971],{"type":56,"value":286},{"type":50,"tag":85,"props":2973,"children":2974},{"style":143},[2975],{"type":56,"value":167},{"type":50,"tag":85,"props":2977,"children":2978},{"style":98},[2979],{"type":56,"value":654},{"type":50,"tag":85,"props":2981,"children":2982},{"style":143},[2983],{"type":56,"value":177},{"type":50,"tag":85,"props":2985,"children":2986},{"style":143},[2987],{"type":56,"value":296},{"type":50,"tag":85,"props":2989,"children":2990},{"class":87,"line":229},[2991,2995,2999,3003],{"type":50,"tag":85,"props":2992,"children":2993},{"style":278},[2994],{"type":56,"value":670},{"type":50,"tag":85,"props":2996,"children":2997},{"style":143},[2998],{"type":56,"value":286},{"type":50,"tag":85,"props":3000,"children":3001},{"style":149},[3002],{"type":56,"value":291},{"type":50,"tag":85,"props":3004,"children":3005},{"style":143},[3006],{"type":56,"value":296},{"type":50,"tag":85,"props":3008,"children":3009},{"class":87,"line":274},[3010,3014,3018],{"type":50,"tag":85,"props":3011,"children":3012},{"style":143},[3013],{"type":56,"value":691},{"type":50,"tag":85,"props":3015,"children":3016},{"style":149},[3017],{"type":56,"value":310},{"type":50,"tag":85,"props":3019,"children":3020},{"style":143},[3021],{"type":56,"value":296},{"type":50,"tag":85,"props":3023,"children":3024},{"class":87,"line":299},[3025,3029],{"type":50,"tag":85,"props":3026,"children":3027},{"style":149},[3028],{"type":56,"value":708},{"type":50,"tag":85,"props":3030,"children":3031},{"style":143},[3032],{"type":56,"value":296},{"type":50,"tag":85,"props":3034,"children":3035},{"class":87,"line":317},[3036,3040,3044],{"type":50,"tag":85,"props":3037,"children":3038},{"style":143},[3039],{"type":56,"value":305},{"type":50,"tag":85,"props":3041,"children":3042},{"style":149},[3043],{"type":56,"value":310},{"type":50,"tag":85,"props":3045,"children":3046},{"style":143},[3047],{"type":56,"value":182},{"type":50,"tag":730,"props":3049,"children":3050},{},[3051,3053,3058,3060,3065],{"type":56,"value":3052},"In v11, ",{"type":50,"tag":81,"props":3054,"children":3056},{"className":3055},[],[3057],{"type":56,"value":2893},{"type":56,"value":3059}," was moved from the client constructor to individual links. Passing it to ",{"type":50,"tag":81,"props":3061,"children":3063},{"className":3062},[],[3064],{"type":56,"value":2910},{"type":56,"value":3066}," throws a TypeError.",{"type":50,"tag":730,"props":3068,"children":3069},{},[3070],{"type":56,"value":3071},"Source: packages\u002Fclient\u002Fsrc\u002Finternals\u002FTRPCUntypedClient.ts",{"type":50,"tag":66,"props":3073,"children":3075},{"id":3074},"critical-transformer-on-only-some-terminating-links-in-splitlink",[3076,3080],{"type":50,"tag":85,"props":3077,"children":3078},{},[3079],{"type":56,"value":2400},{"type":56,"value":3081}," Transformer on only some terminating links in splitLink",{"type":50,"tag":730,"props":3083,"children":3084},{},[3085],{"type":56,"value":2407},{"type":50,"tag":73,"props":3087,"children":3089},{"className":115,"code":3088,"language":117,"meta":78,"style":78},"splitLink({\n  condition: (op) => op.type === 'subscription',\n  true: httpSubscriptionLink({\n    url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    \u002F\u002F missing transformer!\n  }),\n  false: httpBatchLink({\n    url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    transformer: superjson,\n  }),\n});\n",[3090],{"type":50,"tag":81,"props":3091,"children":3092},{"__ignoreMap":78},[3093,3109,3169,3193,3221,3229,3245,3269,3296,3316,3331],{"type":50,"tag":85,"props":3094,"children":3095},{"class":87,"line":88},[3096,3101,3105],{"type":50,"tag":85,"props":3097,"children":3098},{"style":258},[3099],{"type":56,"value":3100},"splitLink",{"type":50,"tag":85,"props":3102,"children":3103},{"style":149},[3104],{"type":56,"value":266},{"type":50,"tag":85,"props":3106,"children":3107},{"style":143},[3108],{"type":56,"value":271},{"type":50,"tag":85,"props":3110,"children":3111},{"class":87,"line":133},[3112,3117,3121,3125,3129,3133,3137,3141,3145,3149,3153,3157,3161,3165],{"type":50,"tag":85,"props":3113,"children":3114},{"style":258},[3115],{"type":56,"value":3116},"  condition",{"type":50,"tag":85,"props":3118,"children":3119},{"style":143},[3120],{"type":56,"value":286},{"type":50,"tag":85,"props":3122,"children":3123},{"style":143},[3124],{"type":56,"value":1008},{"type":50,"tag":85,"props":3126,"children":3127},{"style":1011},[3128],{"type":56,"value":1014},{"type":50,"tag":85,"props":3130,"children":3131},{"style":143},[3132],{"type":56,"value":310},{"type":50,"tag":85,"props":3134,"children":3135},{"style":233},[3136],{"type":56,"value":1023},{"type":50,"tag":85,"props":3138,"children":3139},{"style":149},[3140],{"type":56,"value":1028},{"type":50,"tag":85,"props":3142,"children":3143},{"style":143},[3144],{"type":56,"value":255},{"type":50,"tag":85,"props":3146,"children":3147},{"style":149},[3148],{"type":56,"value":1037},{"type":50,"tag":85,"props":3150,"children":3151},{"style":143},[3152],{"type":56,"value":1042},{"type":50,"tag":85,"props":3154,"children":3155},{"style":143},[3156],{"type":56,"value":167},{"type":50,"tag":85,"props":3158,"children":3159},{"style":98},[3160],{"type":56,"value":1051},{"type":50,"tag":85,"props":3162,"children":3163},{"style":143},[3164],{"type":56,"value":177},{"type":50,"tag":85,"props":3166,"children":3167},{"style":143},[3168],{"type":56,"value":296},{"type":50,"tag":85,"props":3170,"children":3171},{"class":87,"line":185},[3172,3177,3181,3185,3189],{"type":50,"tag":85,"props":3173,"children":3174},{"style":278},[3175],{"type":56,"value":3176},"  true",{"type":50,"tag":85,"props":3178,"children":3179},{"style":143},[3180],{"type":56,"value":286},{"type":50,"tag":85,"props":3182,"children":3183},{"style":258},[3184],{"type":56,"value":1077},{"type":50,"tag":85,"props":3186,"children":3187},{"style":149},[3188],{"type":56,"value":266},{"type":50,"tag":85,"props":3190,"children":3191},{"style":143},[3192],{"type":56,"value":271},{"type":50,"tag":85,"props":3194,"children":3195},{"class":87,"line":219},[3196,3201,3205,3209,3213,3217],{"type":50,"tag":85,"props":3197,"children":3198},{"style":278},[3199],{"type":56,"value":3200},"    url",{"type":50,"tag":85,"props":3202,"children":3203},{"style":143},[3204],{"type":56,"value":286},{"type":50,"tag":85,"props":3206,"children":3207},{"style":143},[3208],{"type":56,"value":167},{"type":50,"tag":85,"props":3210,"children":3211},{"style":98},[3212],{"type":56,"value":654},{"type":50,"tag":85,"props":3214,"children":3215},{"style":143},[3216],{"type":56,"value":177},{"type":50,"tag":85,"props":3218,"children":3219},{"style":143},[3220],{"type":56,"value":296},{"type":50,"tag":85,"props":3222,"children":3223},{"class":87,"line":229},[3224],{"type":50,"tag":85,"props":3225,"children":3226},{"style":127},[3227],{"type":56,"value":3228},"    \u002F\u002F missing transformer!\n",{"type":50,"tag":85,"props":3230,"children":3231},{"class":87,"line":274},[3232,3237,3241],{"type":50,"tag":85,"props":3233,"children":3234},{"style":143},[3235],{"type":56,"value":3236},"  }",{"type":50,"tag":85,"props":3238,"children":3239},{"style":149},[3240],{"type":56,"value":310},{"type":50,"tag":85,"props":3242,"children":3243},{"style":143},[3244],{"type":56,"value":296},{"type":50,"tag":85,"props":3246,"children":3247},{"class":87,"line":299},[3248,3253,3257,3261,3265],{"type":50,"tag":85,"props":3249,"children":3250},{"style":278},[3251],{"type":56,"value":3252},"  false",{"type":50,"tag":85,"props":3254,"children":3255},{"style":143},[3256],{"type":56,"value":286},{"type":50,"tag":85,"props":3258,"children":3259},{"style":258},[3260],{"type":56,"value":448},{"type":50,"tag":85,"props":3262,"children":3263},{"style":149},[3264],{"type":56,"value":266},{"type":50,"tag":85,"props":3266,"children":3267},{"style":143},[3268],{"type":56,"value":271},{"type":50,"tag":85,"props":3270,"children":3271},{"class":87,"line":317},[3272,3276,3280,3284,3288,3292],{"type":50,"tag":85,"props":3273,"children":3274},{"style":278},[3275],{"type":56,"value":3200},{"type":50,"tag":85,"props":3277,"children":3278},{"style":143},[3279],{"type":56,"value":286},{"type":50,"tag":85,"props":3281,"children":3282},{"style":143},[3283],{"type":56,"value":167},{"type":50,"tag":85,"props":3285,"children":3286},{"style":98},[3287],{"type":56,"value":654},{"type":50,"tag":85,"props":3289,"children":3290},{"style":143},[3291],{"type":56,"value":177},{"type":50,"tag":85,"props":3293,"children":3294},{"style":143},[3295],{"type":56,"value":296},{"type":50,"tag":85,"props":3297,"children":3298},{"class":87,"line":325},[3299,3304,3308,3312],{"type":50,"tag":85,"props":3300,"children":3301},{"style":278},[3302],{"type":56,"value":3303},"    transformer",{"type":50,"tag":85,"props":3305,"children":3306},{"style":143},[3307],{"type":56,"value":286},{"type":50,"tag":85,"props":3309,"children":3310},{"style":149},[3311],{"type":56,"value":291},{"type":50,"tag":85,"props":3313,"children":3314},{"style":143},[3315],{"type":56,"value":296},{"type":50,"tag":85,"props":3317,"children":3318},{"class":87,"line":366},[3319,3323,3327],{"type":50,"tag":85,"props":3320,"children":3321},{"style":143},[3322],{"type":56,"value":3236},{"type":50,"tag":85,"props":3324,"children":3325},{"style":149},[3326],{"type":56,"value":310},{"type":50,"tag":85,"props":3328,"children":3329},{"style":143},[3330],{"type":56,"value":296},{"type":50,"tag":85,"props":3332,"children":3333},{"class":87,"line":685},[3334,3338,3342],{"type":50,"tag":85,"props":3335,"children":3336},{"style":143},[3337],{"type":56,"value":305},{"type":50,"tag":85,"props":3339,"children":3340},{"style":149},[3341],{"type":56,"value":310},{"type":50,"tag":85,"props":3343,"children":3344},{"style":143},[3345],{"type":56,"value":182},{"type":50,"tag":730,"props":3347,"children":3348},{},[3349],{"type":56,"value":2619},{"type":50,"tag":73,"props":3351,"children":3353},{"className":115,"code":3352,"language":117,"meta":78,"style":78},"splitLink({\n  condition: (op) => op.type === 'subscription',\n  true: httpSubscriptionLink({\n    url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    transformer: superjson,\n  }),\n  false: httpBatchLink({\n    url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    transformer: superjson,\n  }),\n});\n",[3354],{"type":50,"tag":81,"props":3355,"children":3356},{"__ignoreMap":78},[3357,3372,3431,3454,3481,3500,3515,3538,3565,3584,3599],{"type":50,"tag":85,"props":3358,"children":3359},{"class":87,"line":88},[3360,3364,3368],{"type":50,"tag":85,"props":3361,"children":3362},{"style":258},[3363],{"type":56,"value":3100},{"type":50,"tag":85,"props":3365,"children":3366},{"style":149},[3367],{"type":56,"value":266},{"type":50,"tag":85,"props":3369,"children":3370},{"style":143},[3371],{"type":56,"value":271},{"type":50,"tag":85,"props":3373,"children":3374},{"class":87,"line":133},[3375,3379,3383,3387,3391,3395,3399,3403,3407,3411,3415,3419,3423,3427],{"type":50,"tag":85,"props":3376,"children":3377},{"style":258},[3378],{"type":56,"value":3116},{"type":50,"tag":85,"props":3380,"children":3381},{"style":143},[3382],{"type":56,"value":286},{"type":50,"tag":85,"props":3384,"children":3385},{"style":143},[3386],{"type":56,"value":1008},{"type":50,"tag":85,"props":3388,"children":3389},{"style":1011},[3390],{"type":56,"value":1014},{"type":50,"tag":85,"props":3392,"children":3393},{"style":143},[3394],{"type":56,"value":310},{"type":50,"tag":85,"props":3396,"children":3397},{"style":233},[3398],{"type":56,"value":1023},{"type":50,"tag":85,"props":3400,"children":3401},{"style":149},[3402],{"type":56,"value":1028},{"type":50,"tag":85,"props":3404,"children":3405},{"style":143},[3406],{"type":56,"value":255},{"type":50,"tag":85,"props":3408,"children":3409},{"style":149},[3410],{"type":56,"value":1037},{"type":50,"tag":85,"props":3412,"children":3413},{"style":143},[3414],{"type":56,"value":1042},{"type":50,"tag":85,"props":3416,"children":3417},{"style":143},[3418],{"type":56,"value":167},{"type":50,"tag":85,"props":3420,"children":3421},{"style":98},[3422],{"type":56,"value":1051},{"type":50,"tag":85,"props":3424,"children":3425},{"style":143},[3426],{"type":56,"value":177},{"type":50,"tag":85,"props":3428,"children":3429},{"style":143},[3430],{"type":56,"value":296},{"type":50,"tag":85,"props":3432,"children":3433},{"class":87,"line":185},[3434,3438,3442,3446,3450],{"type":50,"tag":85,"props":3435,"children":3436},{"style":278},[3437],{"type":56,"value":3176},{"type":50,"tag":85,"props":3439,"children":3440},{"style":143},[3441],{"type":56,"value":286},{"type":50,"tag":85,"props":3443,"children":3444},{"style":258},[3445],{"type":56,"value":1077},{"type":50,"tag":85,"props":3447,"children":3448},{"style":149},[3449],{"type":56,"value":266},{"type":50,"tag":85,"props":3451,"children":3452},{"style":143},[3453],{"type":56,"value":271},{"type":50,"tag":85,"props":3455,"children":3456},{"class":87,"line":219},[3457,3461,3465,3469,3473,3477],{"type":50,"tag":85,"props":3458,"children":3459},{"style":278},[3460],{"type":56,"value":3200},{"type":50,"tag":85,"props":3462,"children":3463},{"style":143},[3464],{"type":56,"value":286},{"type":50,"tag":85,"props":3466,"children":3467},{"style":143},[3468],{"type":56,"value":167},{"type":50,"tag":85,"props":3470,"children":3471},{"style":98},[3472],{"type":56,"value":654},{"type":50,"tag":85,"props":3474,"children":3475},{"style":143},[3476],{"type":56,"value":177},{"type":50,"tag":85,"props":3478,"children":3479},{"style":143},[3480],{"type":56,"value":296},{"type":50,"tag":85,"props":3482,"children":3483},{"class":87,"line":229},[3484,3488,3492,3496],{"type":50,"tag":85,"props":3485,"children":3486},{"style":278},[3487],{"type":56,"value":3303},{"type":50,"tag":85,"props":3489,"children":3490},{"style":143},[3491],{"type":56,"value":286},{"type":50,"tag":85,"props":3493,"children":3494},{"style":149},[3495],{"type":56,"value":291},{"type":50,"tag":85,"props":3497,"children":3498},{"style":143},[3499],{"type":56,"value":296},{"type":50,"tag":85,"props":3501,"children":3502},{"class":87,"line":274},[3503,3507,3511],{"type":50,"tag":85,"props":3504,"children":3505},{"style":143},[3506],{"type":56,"value":3236},{"type":50,"tag":85,"props":3508,"children":3509},{"style":149},[3510],{"type":56,"value":310},{"type":50,"tag":85,"props":3512,"children":3513},{"style":143},[3514],{"type":56,"value":296},{"type":50,"tag":85,"props":3516,"children":3517},{"class":87,"line":299},[3518,3522,3526,3530,3534],{"type":50,"tag":85,"props":3519,"children":3520},{"style":278},[3521],{"type":56,"value":3252},{"type":50,"tag":85,"props":3523,"children":3524},{"style":143},[3525],{"type":56,"value":286},{"type":50,"tag":85,"props":3527,"children":3528},{"style":258},[3529],{"type":56,"value":448},{"type":50,"tag":85,"props":3531,"children":3532},{"style":149},[3533],{"type":56,"value":266},{"type":50,"tag":85,"props":3535,"children":3536},{"style":143},[3537],{"type":56,"value":271},{"type":50,"tag":85,"props":3539,"children":3540},{"class":87,"line":317},[3541,3545,3549,3553,3557,3561],{"type":50,"tag":85,"props":3542,"children":3543},{"style":278},[3544],{"type":56,"value":3200},{"type":50,"tag":85,"props":3546,"children":3547},{"style":143},[3548],{"type":56,"value":286},{"type":50,"tag":85,"props":3550,"children":3551},{"style":143},[3552],{"type":56,"value":167},{"type":50,"tag":85,"props":3554,"children":3555},{"style":98},[3556],{"type":56,"value":654},{"type":50,"tag":85,"props":3558,"children":3559},{"style":143},[3560],{"type":56,"value":177},{"type":50,"tag":85,"props":3562,"children":3563},{"style":143},[3564],{"type":56,"value":296},{"type":50,"tag":85,"props":3566,"children":3567},{"class":87,"line":325},[3568,3572,3576,3580],{"type":50,"tag":85,"props":3569,"children":3570},{"style":278},[3571],{"type":56,"value":3303},{"type":50,"tag":85,"props":3573,"children":3574},{"style":143},[3575],{"type":56,"value":286},{"type":50,"tag":85,"props":3577,"children":3578},{"style":149},[3579],{"type":56,"value":291},{"type":50,"tag":85,"props":3581,"children":3582},{"style":143},[3583],{"type":56,"value":296},{"type":50,"tag":85,"props":3585,"children":3586},{"class":87,"line":366},[3587,3591,3595],{"type":50,"tag":85,"props":3588,"children":3589},{"style":143},[3590],{"type":56,"value":3236},{"type":50,"tag":85,"props":3592,"children":3593},{"style":149},[3594],{"type":56,"value":310},{"type":50,"tag":85,"props":3596,"children":3597},{"style":143},[3598],{"type":56,"value":296},{"type":50,"tag":85,"props":3600,"children":3601},{"class":87,"line":685},[3602,3606,3610],{"type":50,"tag":85,"props":3603,"children":3604},{"style":143},[3605],{"type":56,"value":305},{"type":50,"tag":85,"props":3607,"children":3608},{"style":149},[3609],{"type":56,"value":310},{"type":50,"tag":85,"props":3611,"children":3612},{"style":143},[3613],{"type":56,"value":182},{"type":50,"tag":730,"props":3615,"children":3616},{},[3617],{"type":56,"value":3618},"Every terminating link must have the same transformer. A missing transformer on one branch causes deserialization failures only for operations routed through that branch.",{"type":50,"tag":730,"props":3620,"children":3621},{},[3622],{"type":56,"value":2872},{"type":50,"tag":66,"props":3624,"children":3626},{"id":3625},"high-using-transformer-on-client-but-not-on-server",[3627,3632],{"type":50,"tag":85,"props":3628,"children":3629},{},[3630],{"type":56,"value":3631},"HIGH",{"type":56,"value":3633}," Using transformer on client but not on server",{"type":50,"tag":730,"props":3635,"children":3636},{},[3637],{"type":56,"value":2407},{"type":50,"tag":73,"props":3639,"children":3641},{"className":115,"code":3640,"language":117,"meta":78,"style":78},"\u002F\u002F Server -- no transformer\nconst t = initTRPC.create();\n\n\u002F\u002F Client\nhttpBatchLink({ url, transformer: superjson });\n",[3642],{"type":50,"tag":81,"props":3643,"children":3644},{"__ignoreMap":78},[3645,3653,3689,3696,3703],{"type":50,"tag":85,"props":3646,"children":3647},{"class":87,"line":88},[3648],{"type":50,"tag":85,"props":3649,"children":3650},{"style":127},[3651],{"type":56,"value":3652},"\u002F\u002F Server -- no transformer\n",{"type":50,"tag":85,"props":3654,"children":3655},{"class":87,"line":133},[3656,3660,3664,3668,3672,3676,3680,3685],{"type":50,"tag":85,"props":3657,"children":3658},{"style":233},[3659],{"type":56,"value":236},{"type":50,"tag":85,"props":3661,"children":3662},{"style":149},[3663],{"type":56,"value":241},{"type":50,"tag":85,"props":3665,"children":3666},{"style":143},[3667],{"type":56,"value":246},{"type":50,"tag":85,"props":3669,"children":3670},{"style":149},[3671],{"type":56,"value":152},{"type":50,"tag":85,"props":3673,"children":3674},{"style":143},[3675],{"type":56,"value":255},{"type":50,"tag":85,"props":3677,"children":3678},{"style":258},[3679],{"type":56,"value":261},{"type":50,"tag":85,"props":3681,"children":3682},{"style":149},[3683],{"type":56,"value":3684},"()",{"type":50,"tag":85,"props":3686,"children":3687},{"style":143},[3688],{"type":56,"value":182},{"type":50,"tag":85,"props":3690,"children":3691},{"class":87,"line":185},[3692],{"type":50,"tag":85,"props":3693,"children":3694},{"emptyLinePlaceholder":223},[3695],{"type":56,"value":226},{"type":50,"tag":85,"props":3697,"children":3698},{"class":87,"line":219},[3699],{"type":50,"tag":85,"props":3700,"children":3701},{"style":127},[3702],{"type":56,"value":2497},{"type":50,"tag":85,"props":3704,"children":3705},{"class":87,"line":229},[3706,3710,3714,3718,3722,3726,3730,3734,3738,3742,3746],{"type":50,"tag":85,"props":3707,"children":3708},{"style":258},[3709],{"type":56,"value":2557},{"type":50,"tag":85,"props":3711,"children":3712},{"style":149},[3713],{"type":56,"value":266},{"type":50,"tag":85,"props":3715,"children":3716},{"style":143},[3717],{"type":56,"value":1890},{"type":50,"tag":85,"props":3719,"children":3720},{"style":149},[3721],{"type":56,"value":2570},{"type":50,"tag":85,"props":3723,"children":3724},{"style":143},[3725],{"type":56,"value":443},{"type":50,"tag":85,"props":3727,"children":3728},{"style":278},[3729],{"type":56,"value":2462},{"type":50,"tag":85,"props":3731,"children":3732},{"style":143},[3733],{"type":56,"value":286},{"type":50,"tag":85,"props":3735,"children":3736},{"style":149},[3737],{"type":56,"value":195},{"type":50,"tag":85,"props":3739,"children":3740},{"style":143},[3741],{"type":56,"value":305},{"type":50,"tag":85,"props":3743,"children":3744},{"style":149},[3745],{"type":56,"value":310},{"type":50,"tag":85,"props":3747,"children":3748},{"style":143},[3749],{"type":56,"value":182},{"type":50,"tag":730,"props":3751,"children":3752},{},[3753],{"type":56,"value":2619},{"type":50,"tag":73,"props":3755,"children":3757},{"className":115,"code":3756,"language":117,"meta":78,"style":78},"\u002F\u002F Server\nconst t = initTRPC.create({ transformer: superjson });\n\n\u002F\u002F Client\nhttpBatchLink({ url, transformer: superjson });\n",[3758],{"type":50,"tag":81,"props":3759,"children":3760},{"__ignoreMap":78},[3761,3768,3827,3834,3841],{"type":50,"tag":85,"props":3762,"children":3763},{"class":87,"line":88},[3764],{"type":50,"tag":85,"props":3765,"children":3766},{"style":127},[3767],{"type":56,"value":2422},{"type":50,"tag":85,"props":3769,"children":3770},{"class":87,"line":133},[3771,3775,3779,3783,3787,3791,3795,3799,3803,3807,3811,3815,3819,3823],{"type":50,"tag":85,"props":3772,"children":3773},{"style":233},[3774],{"type":56,"value":236},{"type":50,"tag":85,"props":3776,"children":3777},{"style":149},[3778],{"type":56,"value":241},{"type":50,"tag":85,"props":3780,"children":3781},{"style":143},[3782],{"type":56,"value":246},{"type":50,"tag":85,"props":3784,"children":3785},{"style":149},[3786],{"type":56,"value":152},{"type":50,"tag":85,"props":3788,"children":3789},{"style":143},[3790],{"type":56,"value":255},{"type":50,"tag":85,"props":3792,"children":3793},{"style":258},[3794],{"type":56,"value":261},{"type":50,"tag":85,"props":3796,"children":3797},{"style":149},[3798],{"type":56,"value":266},{"type":50,"tag":85,"props":3800,"children":3801},{"style":143},[3802],{"type":56,"value":1890},{"type":50,"tag":85,"props":3804,"children":3805},{"style":278},[3806],{"type":56,"value":2462},{"type":50,"tag":85,"props":3808,"children":3809},{"style":143},[3810],{"type":56,"value":286},{"type":50,"tag":85,"props":3812,"children":3813},{"style":149},[3814],{"type":56,"value":195},{"type":50,"tag":85,"props":3816,"children":3817},{"style":143},[3818],{"type":56,"value":305},{"type":50,"tag":85,"props":3820,"children":3821},{"style":149},[3822],{"type":56,"value":310},{"type":50,"tag":85,"props":3824,"children":3825},{"style":143},[3826],{"type":56,"value":182},{"type":50,"tag":85,"props":3828,"children":3829},{"class":87,"line":185},[3830],{"type":50,"tag":85,"props":3831,"children":3832},{"emptyLinePlaceholder":223},[3833],{"type":56,"value":226},{"type":50,"tag":85,"props":3835,"children":3836},{"class":87,"line":219},[3837],{"type":50,"tag":85,"props":3838,"children":3839},{"style":127},[3840],{"type":56,"value":2497},{"type":50,"tag":85,"props":3842,"children":3843},{"class":87,"line":229},[3844,3848,3852,3856,3860,3864,3868,3872,3876,3880,3884],{"type":50,"tag":85,"props":3845,"children":3846},{"style":258},[3847],{"type":56,"value":2557},{"type":50,"tag":85,"props":3849,"children":3850},{"style":149},[3851],{"type":56,"value":266},{"type":50,"tag":85,"props":3853,"children":3854},{"style":143},[3855],{"type":56,"value":1890},{"type":50,"tag":85,"props":3857,"children":3858},{"style":149},[3859],{"type":56,"value":2570},{"type":50,"tag":85,"props":3861,"children":3862},{"style":143},[3863],{"type":56,"value":443},{"type":50,"tag":85,"props":3865,"children":3866},{"style":278},[3867],{"type":56,"value":2462},{"type":50,"tag":85,"props":3869,"children":3870},{"style":143},[3871],{"type":56,"value":286},{"type":50,"tag":85,"props":3873,"children":3874},{"style":149},[3875],{"type":56,"value":195},{"type":50,"tag":85,"props":3877,"children":3878},{"style":143},[3879],{"type":56,"value":305},{"type":50,"tag":85,"props":3881,"children":3882},{"style":149},[3883],{"type":56,"value":310},{"type":50,"tag":85,"props":3885,"children":3886},{"style":143},[3887],{"type":56,"value":182},{"type":50,"tag":730,"props":3889,"children":3890},{},[3891,3893,3899],{"type":56,"value":3892},"The transformer must be configured on both ",{"type":50,"tag":81,"props":3894,"children":3896},{"className":3895},[],[3897],{"type":56,"value":3898},"initTRPC.create()",{"type":56,"value":3900}," and every client link. Client-only transformer corrupts the request encoding because the server expects plain JSON.",{"type":50,"tag":730,"props":3902,"children":3903},{},[3904],{"type":56,"value":2872},{"type":50,"tag":59,"props":3906,"children":3908},{"id":3907},"see-also",[3909],{"type":56,"value":3910},"See Also",{"type":50,"tag":3912,"props":3913,"children":3914},"ul",{},[3915,3926,3937],{"type":50,"tag":3916,"props":3917,"children":3918},"li",{},[3919,3924],{"type":50,"tag":81,"props":3920,"children":3922},{"className":3921},[],[3923],{"type":56,"value":43},{"type":56,"value":3925}," -- create the tRPC client and configure links",{"type":50,"tag":3916,"props":3927,"children":3928},{},[3929,3935],{"type":50,"tag":81,"props":3930,"children":3932},{"className":3931},[],[3933],{"type":56,"value":3934},"links",{"type":56,"value":3936}," -- detailed options for each link type including transformer",{"type":50,"tag":3916,"props":3938,"children":3939},{},[3940,3945],{"type":50,"tag":81,"props":3941,"children":3943},{"className":3942},[],[3944],{"type":56,"value":42},{"type":56,"value":3946}," -- initTRPC.create() where the server transformer is configured",{"type":50,"tag":3948,"props":3949,"children":3950},"style",{},[3951],{"type":56,"value":3952},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3954,"total":1272},[3955,3968,3981,3994,4014,4027,4041,4055,4066,4080,4089,4101],{"slug":3956,"name":3956,"fn":3957,"description":3958,"org":3959,"tags":3960,"stars":20,"repoUrl":21,"updatedAt":3967},"adapter-aws-lambda","deploy tRPC APIs on AWS Lambda","Deploy tRPC on AWS Lambda with awsLambdaRequestHandler() from @trpc\u002Fserver\u002Fadapters\u002Faws-lambda for API Gateway v1 (REST, APIGatewayProxyEvent) and v2 (HTTP, APIGatewayProxyEventV2), and Lambda Function URLs. Enable response streaming with awsLambdaStreamingRequestHandler() wrapped in awslambda.streamifyResponse(). CreateAWSLambdaContextOptions provides event and context for context creation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3961,3962,3965,3966],{"name":18,"slug":19,"type":15},{"name":3963,"slug":3964,"type":15},"AWS","aws",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-18T05:47:05.451869",{"slug":3969,"name":3969,"fn":3970,"description":3971,"org":3972,"tags":3973,"stars":20,"repoUrl":21,"updatedAt":3980},"adapter-express","mount tRPC as Express middleware","Mount tRPC as Express middleware with createExpressMiddleware() from @trpc\u002Fserver\u002Fadapters\u002Fexpress. Access Express req\u002Fres in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('\u002Ftrpc', ...). Avoid global express.json() conflicting with tRPC body parsing for FormData.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3974,3975,3976,3979],{"name":18,"slug":19,"type":15},{"name":13,"slug":14,"type":15},{"name":3977,"slug":3978,"type":15},"Express","express",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:53.274248",{"slug":3982,"name":3982,"fn":3983,"description":3984,"org":3985,"tags":3986,"stars":20,"repoUrl":21,"updatedAt":3993},"adapter-fastify","mount tRPC as a Fastify plugin","Mount tRPC as a Fastify plugin with fastifyTRPCPlugin from @trpc\u002Fserver\u002Fadapters\u002Ffastify. Configure prefix, trpcOptions (router, createContext, onError). Enable WebSocket subscriptions with useWSS and @fastify\u002Fwebsocket. Set routerOptions.maxParamLength for batch requests. Requires Fastify v5+. FastifyTRPCPluginOptions for type-safe onError. CreateFastifyContextOptions provides req, res.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3987,3988,3989,3992],{"name":18,"slug":19,"type":15},{"name":13,"slug":14,"type":15},{"name":3990,"slug":3991,"type":15},"Fastify","fastify",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:53.746621",{"slug":3995,"name":3995,"fn":3996,"description":3997,"org":3998,"tags":3999,"stars":20,"repoUrl":21,"updatedAt":4013},"adapter-fetch","deploy tRPC on edge runtimes","Deploy tRPC on WinterCG-compliant edge runtimes with fetchRequestHandler() from @trpc\u002Fserver\u002Fadapters\u002Ffetch. Supports Cloudflare Workers, Deno Deploy, Vercel Edge Runtime, Astro, Remix, SolidStart. FetchCreateContextFnOptions provides req (Request) and resHeaders (Headers) for context creation. The endpoint option must match the URL path prefix where the handler is mounted.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4000,4003,4006,4009,4010],{"name":4001,"slug":4002,"type":15},"Cloudflare","cloudflare",{"name":4004,"slug":4005,"type":15},"Deployment","deployment",{"name":4007,"slug":4008,"type":15},"Edge","edge",{"name":9,"slug":8,"type":15},{"name":4011,"slug":4012,"type":15},"Vercel","vercel","2026-07-18T05:46:50.548228",{"slug":4015,"name":4015,"fn":4016,"description":4017,"org":4018,"tags":4019,"stars":20,"repoUrl":21,"updatedAt":4026},"adapter-standalone","mount tRPC on Node.js servers","Mount tRPC on Node.js built-in HTTP server with createHTTPServer() from @trpc\u002Fserver\u002Fadapters\u002Fstandalone, createHTTPHandler() for custom http.createServer, createHTTP2Handler() for HTTP\u002F2 with TLS. Configure basePath to slice URL prefix, CORS via the cors npm package passed as middleware option. CreateHTTPContextOptions provides req and res for context creation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4020,4021,4022,4025],{"name":18,"slug":19,"type":15},{"name":13,"slug":14,"type":15},{"name":4023,"slug":4024,"type":15},"Node.js","node-js",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:58.093869",{"slug":4028,"name":4028,"fn":4029,"description":4030,"org":4031,"tags":4032,"stars":20,"repoUrl":21,"updatedAt":4040},"auth","implement authentication in tRPC applications","Implement JWT\u002Fcookie authentication and authorization in tRPC using createContext for user extraction, t.middleware with opts.next({ ctx }) for context narrowing to non-null user, protectedProcedure base pattern, client-side Authorization headers via httpBatchLink headers(), WebSocket connectionParams, and SSE auth via cookies or EventSource polyfill custom headers.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4033,4035,4038,4039],{"name":4034,"slug":4028,"type":15},"Auth",{"name":4036,"slug":4037,"type":15},"Authentication","authentication",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-18T05:46:45.347628",{"slug":4042,"name":4042,"fn":4043,"description":4044,"org":4045,"tags":4046,"stars":20,"repoUrl":21,"updatedAt":4054},"caching","configure HTTP caching for tRPC queries","Set HTTP cache headers on tRPC query responses via responseMeta callback for CDN and browser caching. Configure Cache-Control, s-maxage, stale-while-revalidate. Handle caching with batching and authenticated requests. Avoid caching mutations, errors, and authenticated responses.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4047,4048,4050,4053],{"name":13,"slug":14,"type":15},{"name":4049,"slug":4042,"type":15},"Caching",{"name":4051,"slug":4052,"type":15},"Performance","performance",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:45.86443",{"slug":43,"name":43,"fn":4056,"description":4057,"org":4058,"tags":4059,"stars":20,"repoUrl":21,"updatedAt":4065},"set up vanilla tRPC clients","Create a vanilla tRPC client with createTRPCClient\u003CAppRouter>(), configure link chain with httpBatchLink\u002FhttpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4060,4061,4064],{"name":18,"slug":19,"type":15},{"name":4062,"slug":4063,"type":15},"Frontend","frontend",{"name":9,"slug":8,"type":15},"2026-07-18T05:48:11.437946",{"slug":4067,"name":4067,"fn":4068,"description":4069,"org":4070,"tags":4071,"stars":20,"repoUrl":21,"updatedAt":4079},"error-handling","implement typed error handling in tRPC","Throw typed errors with TRPCError and error codes (NOT_FOUND, UNAUTHORIZED, BAD_REQUEST, INTERNAL_SERVER_ERROR), configure errorFormatter for client-side Zod error display, handle errors globally with onError callback, map tRPC errors to HTTP status codes with getHTTPStatusCodeFromError().\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4072,4073,4076,4077],{"name":13,"slug":14,"type":15},{"name":4074,"slug":4075,"type":15},"Debugging","debugging",{"name":9,"slug":8,"type":15},{"name":4078,"slug":31,"type":15},"TypeScript","2026-07-18T05:46:52.798151",{"slug":3934,"name":3934,"fn":4081,"description":4082,"org":4083,"tags":4084,"stars":20,"repoUrl":21,"updatedAt":4088},"configure tRPC client link chains","Configure the tRPC client link chain: httpLink, httpBatchLink, httpBatchStreamLink, splitLink, loggerLink, wsLink, createWSClient, httpSubscriptionLink, unstable_localLink, retryLink. Choose the right terminating link. Route subscriptions via splitLink. Build custom links for SOA routing. Link options: url, headers, transformer, maxURLLength, maxItems, connectionParams, EventSource ponyfill.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4085,4086,4087],{"name":18,"slug":19,"type":15},{"name":4062,"slug":4063,"type":15},{"name":9,"slug":8,"type":15},"2026-07-18T05:47:06.847309",{"slug":4090,"name":4090,"fn":4091,"description":4092,"org":4093,"tags":4094,"stars":20,"repoUrl":21,"updatedAt":4100},"middlewares","compose middleware for tRPC procedures","Create and compose tRPC middleware with t.procedure.use(), extend context via opts.next({ ctx }), build reusable middleware with .concat() and .unstable_pipe(), define base procedures like publicProcedure and authedProcedure. Access raw input with getRawInput(). Logging, timing, OTEL tracing patterns.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4095,4096,4099],{"name":13,"slug":14,"type":15},{"name":4097,"slug":4098,"type":15},"Middleware","middleware",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:49.132255",{"slug":4102,"name":4102,"fn":4103,"description":4104,"org":4105,"tags":4106,"stars":20,"repoUrl":21,"updatedAt":4114},"nextjs-app-router","implement tRPC in Next.js App Router","Full end-to-end tRPC setup for Next.js App Router. Covers route handler with fetchRequestHandler (GET + POST exports), TRPCProvider with QueryClientProvider, createTRPCOptionsProxy for RSC prefetching, HydrateClient\u002FHydrationBoundary for hydration, useSuspenseQuery for Suspense, and server-side callers.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4107,4108,4109,4112,4113],{"name":13,"slug":14,"type":15},{"name":4062,"slug":4063,"type":15},{"name":4110,"slug":4111,"type":15},"Next.js","next-js",{"name":9,"slug":8,"type":15},{"name":4078,"slug":31,"type":15},"2026-07-18T05:47:10.468453",{"items":4116,"total":1272},[4117,4124,4131,4138,4146,4153,4160],{"slug":3956,"name":3956,"fn":3957,"description":3958,"org":4118,"tags":4119,"stars":20,"repoUrl":21,"updatedAt":3967},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4120,4121,4122,4123],{"name":18,"slug":19,"type":15},{"name":3963,"slug":3964,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":3969,"name":3969,"fn":3970,"description":3971,"org":4125,"tags":4126,"stars":20,"repoUrl":21,"updatedAt":3980},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4127,4128,4129,4130],{"name":18,"slug":19,"type":15},{"name":13,"slug":14,"type":15},{"name":3977,"slug":3978,"type":15},{"name":9,"slug":8,"type":15},{"slug":3982,"name":3982,"fn":3983,"description":3984,"org":4132,"tags":4133,"stars":20,"repoUrl":21,"updatedAt":3993},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4134,4135,4136,4137],{"name":18,"slug":19,"type":15},{"name":13,"slug":14,"type":15},{"name":3990,"slug":3991,"type":15},{"name":9,"slug":8,"type":15},{"slug":3995,"name":3995,"fn":3996,"description":3997,"org":4139,"tags":4140,"stars":20,"repoUrl":21,"updatedAt":4013},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4141,4142,4143,4144,4145],{"name":4001,"slug":4002,"type":15},{"name":4004,"slug":4005,"type":15},{"name":4007,"slug":4008,"type":15},{"name":9,"slug":8,"type":15},{"name":4011,"slug":4012,"type":15},{"slug":4015,"name":4015,"fn":4016,"description":4017,"org":4147,"tags":4148,"stars":20,"repoUrl":21,"updatedAt":4026},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4149,4150,4151,4152],{"name":18,"slug":19,"type":15},{"name":13,"slug":14,"type":15},{"name":4023,"slug":4024,"type":15},{"name":9,"slug":8,"type":15},{"slug":4028,"name":4028,"fn":4029,"description":4030,"org":4154,"tags":4155,"stars":20,"repoUrl":21,"updatedAt":4040},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4156,4157,4158,4159],{"name":4034,"slug":4028,"type":15},{"name":4036,"slug":4037,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":4042,"name":4042,"fn":4043,"description":4044,"org":4161,"tags":4162,"stars":20,"repoUrl":21,"updatedAt":4054},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4163,4164,4165,4166],{"name":13,"slug":14,"type":15},{"name":4049,"slug":4042,"type":15},{"name":4051,"slug":4052,"type":15},{"name":9,"slug":8,"type":15}]