Aller au contenu principal
Version : 11.x

Function: createTRPCNext()

createTRPCNext<TRouter, TSSRContext>(opts): ProtectedIntersection<CreateTRPCNextBase<TRouter, TSSRContext>, DecorateRouterRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>>

Defined in: createTRPCNext.tsx:60

Type Parameters​

Type ParameterDefault type
TRouter extends AnyRouter-
TSSRContext extends NextPageContextNextPageContext

Parameters​

ParameterType
optsWithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>

Returns​

ProtectedIntersection<CreateTRPCNextBase<TRouter, TSSRContext>, DecorateRouterRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>>