1"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([["31544"],{69574(e,t,r){r.r(t),r.d(t,{metadata:()=>i,default:()=>p,frontMatter:()=>c,contentTitle:()=>o,toc:()=>d,assets:()=>a});var i=JSON.parse('{"id":"typedoc/server/index/variables/initTRPC","title":"Variable: initTRPC","description":"const initTRPC: TRPCBuilder\\\\","source":"@site/docs/typedoc/server/index/variables/initTRPC.md","sourceDirName":"typedoc/server/index/variables","slug":"/typedoc/server/index/variables/initTRPC","permalink":"/docs/typedoc/server/index/variables/initTRPC","draft":false,"unlisted":false,"editUrl":"https://github.com/trpc/trpc/tree/main/www/docs/typedoc/server/index/variables/initTRPC.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Type Alias: inferTRPCClientTypes\\\\<TInferrable\\\\>","permalink":"/docs/typedoc/server/index/type-aliases/inferTRPCClientTypes"},"next":{"title":"observable","permalink":"/docs/typedoc/server/observable/"}}'),n=r(27968),s=r(77334);let c={},o="Variable: initTRPC",a={},d=[{value:"See",id:"see",level:2}];function l(e){let t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"variable-inittrpc",children:"Variable: initTRPC"})}),"\n",(0,n.jsxs)(t.blockquote,{children:["\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.code,{children:"const"})," ",(0,n.jsx)(t.strong,{children:"initTRPC"}),": ",(0,n.jsx)(t.a,{href:"/docs/typedoc/server/index/classes/TRPCBuilder",children:(0,n.jsx)(t.code,{children:"TRPCBuilder"})}),"<",(0,n.jsx)(t.code,{children:"object"}),", ",(0,n.jsx)(t.code,{children:"object"}),">"]}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["Defined in: ",(0,n.jsx)(t.a,{href:"https://github.com/trpc/trpc/blob/f55eeb408e824a0443a78904644b7a5981644779/packages/server/src/unstable-core-do-not-import/initTRPC.ts#L224",children:"packages/server/src/unstable-core-do-not-import/initTRPC.ts:224"})]}),"\n",(0,n.jsx)(t.p,{children:"Builder to initialize the tRPC root object - use this exactly once per backend"}),"\n",(0,n.jsx)(t.h2,{id:"see",children:"See"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://trpc.io/docs/v11/quickstart",children:"https://trpc.io/docs/v11/quickstart"})})]})}function p(e={}){let{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},77334(e,t,r){r.d(t,{R:()=>c,x:()=>o});var i=r(64700);let n={},s=i.createContext(n);function c(e){let t=i.useContext(s);return i.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:c(e.components),i.createElement(s.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.