Skip to main content
Version: 11.x

Function: createTRPCNext()

createTRPCNext<TRouter, TSSRContext>(opts): CreateTRPCNext<TRouter, TSSRContext>

Type Parameters

Type ParameterDefault type
TRouter extends AnyRouter-
TSSRContext extends NextPageContextNextPageContext

Parameters

ParameterType
optsWithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>

Returns

CreateTRPCNext<TRouter, TSSRContext>

Defined in

createTRPCNext.tsx:60