Skip to content
tRPC

Partners

Type Alias: FetchCreateContextFn()<TRouter>

On this page

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

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

The createContext function the Fetch adapter takes.

Type Parameters

Type Parameter
TRouter extends AnyTRPCRouter

Parameters

ParameterType
optsFetchCreateContextFnOptions

Returns

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