1"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([["29320"],{43937(e,t,s){s.r(t),s.d(t,{metadata:()=>n,default:()=>p,frontMatter:()=>i,contentTitle:()=>l,toc:()=>o,assets:()=>d});var n=JSON.parse('{"id":"typedoc/next/type-aliases/TRPCPrepassProps","title":"Type Alias: TRPCPrepassProps\\\\<TRouter, TSSRContext\\\\>","description":"TRPCPrepassProps\\\\: object","source":"@site/docs/typedoc/next/type-aliases/TRPCPrepassProps.md","sourceDirName":"typedoc/next/type-aliases","slug":"/typedoc/next/type-aliases/TRPCPrepassProps","permalink":"/docs/typedoc/next/type-aliases/TRPCPrepassProps","draft":false,"unlisted":false,"editUrl":"https://github.com/trpc/trpc/tree/main/www/docs/typedoc/next/type-aliases/TRPCPrepassProps.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Type Alias: TRPCPrepassHelper()","permalink":"/docs/typedoc/next/type-aliases/TRPCPrepassHelper"},"next":{"title":"Type Alias: WithTRPCConfig\\\\<TRouter\\\\>","permalink":"/docs/typedoc/next/type-aliases/WithTRPCConfig"}}'),r=s(27968),c=s(77334);let i={},l="Type Alias: TRPCPrepassProps<TRouter, TSSRContext>",d={},o=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"Type declaration",id:"type-declaration",level:2},{value:"config",id:"config",level:3},{value:"queryClient",id:"queryclient",level:3},{value:"ssrContext",id:"ssrcontext",level:3},{value:"ssrState",id:"ssrstate",level:3},{value:"trpcClient",id:"trpcclient",level:3}];function a(e){let t={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,c.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"type-alias-trpcprepasspropstrouter-tssrcontext",children:"Type Alias: TRPCPrepassProps<TRouter, TSSRContext>"})}),"\n",(0,r.jsxs)(t.blockquote,{children:["\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"TRPCPrepassProps"}),"<",(0,r.jsx)(t.code,{children:"TRouter"}),", ",(0,r.jsx)(t.code,{children:"TSSRContext"}),">: ",(0,r.jsx)(t.code,{children:"object"})]}),"\n"]}),"\n",(0,r.jsxs)(t.p,{children:["Defined in: ",(0,r.jsx)(t.a,{href:"https://github.com/trpc/trpc/blob/f55eeb408e824a0443a78904644b7a5981644779/packages/next/src/withTRPC.tsx#L78",children:"withTRPC.tsx:78"})]}),"\n",(0,r.jsx)(t.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Type Parameter"}),(0,r.jsx)(t.th,{children:"Default type"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsxs)(t.td,{children:[(0,r.jsx)(t.code,{children:"TRouter"})," ",(0,r.jsx)(t.em,{children:"extends"})," ",(0,r.jsx)(t.code,{children:"AnyRouter"})]}),(0,r.jsx)(t.td,{children:"-"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsxs)(t.td,{children:[(0,r.jsx)(t.code,{children:"TSSRContext"})," ",(0,r.jsx)(t.em,{children:"extends"})," ",(0,r.jsx)(t.code,{children:"NextPageContext"})]}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"NextPageContext"})})]})]})]}),"\n",(0,r.jsx)(t.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,r.jsx)(t.h3,{id:"config",children:"config"}),"\n",(0,r.jsxs)(t.blockquote,{children:["\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"config"}),": ",(0,r.jsx)(t.a,{href:"/docs/typedoc/next/type-aliases/WithTRPCConfig",children:(0,r.jsx)(t.code,{children:"WithTRPCConfig"})}),"<",(0,r.jsx)(t.code,{children:"TRouter"}),">"]}),"\n"]}),"\n",(0,r.jsx)(t.h3,{id:"queryclient",children:"queryClient"}),"\n",(0,r.jsxs)(t.blockquote,{children:["\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"queryClient"}),": ",(0,r.jsx)(t.code,{children:"QueryClient"})]}),"\n"]}),"\n",(0,r.jsx)(t.h3,{id:"ssrcontext",children:"ssrContext"}),"\n",(0,r.jsxs)(t.blockquote,{children:["\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"ssrContext"}),": ",(0,r.jsx)(t.code,{children:"TSSRContext"})]}),"\n"]}),"\n",(0,r.jsx)(t.h3,{id:"ssrstate",children:"ssrState"}),"\n",(0,r.jsxs)(t.blockquote,{children:["\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"ssrState"}),": ",(0,r.jsx)(t.code,{children:'"prepass"'})]}),"\n"]}),"\n",(0,r.jsx)(t.h3,{id:"trpcclient",children:"trpcClient"}),"\n",(0,r.jsxs)(t.blockquote,{children:["\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"trpcClient"}),": ",(0,r.jsx)(t.code,{children:"TRPCUntypedClient"}),"<",(0,r.jsx)(t.code,{children:"TRouter"}),"> | ",(0,r.jsx)(t.code,{children:"TRPCClient"}),"<",(0,r.jsx)(t.code,{children:"TRouter"}),">"]}),"\n"]})]})}function p(e={}){let{wrapper:t}={...(0,c.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(a,{...e})}):a(e)}},77334(e,t,s){s.d(t,{R:()=>i,x:()=>l});var n=s(64700);let r={},c=n.createContext(r);function i(e){let t=n.useContext(c);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(c.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.