Skip to main content
Version: 11.x

Function: withTRPC()

withTRPC<TRouter, TSSRContext>(opts): (AppOrPage) => NextComponentType

Type parameters

ParameterDefault
TRouter extends Router< any, any, TRouter >-
TSSRContext extends NextPageContextNextPageContext

Parameters

ParameterType
optsWithTRPCNoSSROptions< TRouter > | WithTRPCSSROptions< TRouter >

Returns

(AppOrPage): NextComponentType

Parameters

ParameterType
AppOrPageNextComponentType< any, any, any >

Returns

NextComponentType

Source

withTRPC.tsx:94

Source

withTRPC.tsx:84


Generated using TypeDoc and typedoc-plugin-markdown