メインコンテンツへスキップ
バージョン: 11.x

Type Alias: FetchCreateContextFn()<TRouter>

FetchCreateContextFn<TRouter>: (opts) => inferRouterContext<TRouter> | Promise<inferRouterContext<TRouter>>

Defined in: packages/server/src/adapters/fetch/types.ts:28

Type Parameters

Type Parameter
TRouter extends AnyTRPCRouter

Parameters

ParameterType
optsFetchCreateContextFnOptions

Returns

inferRouterContext<TRouter> | Promise<inferRouterContext<TRouter>>