Function: withTRPC()
withTRPC<
TRouter
,TSSRContext
>(opts
): (AppOrPage
) =>NextComponentType
Type Parameters
Type Parameter | Default type |
---|---|
TRouter extends AnyRouter | - |
TSSRContext extends NextPageContext | NextPageContext |
Parameters
Parameter | Type |
---|---|
opts | WithTRPCNoSSROptions <TRouter > | WithTRPCSSROptions <TRouter > |
Returns
Function
Parameters
Parameter | Type |
---|---|
AppOrPage | NextComponentType <any , any , any > |
Returns
NextComponentType