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
| Parameter | Type |
|---|---|
opts | FetchCreateContextFnOptions |
Returns
inferRouterContext<TRouter> | Promise<inferRouterContext<TRouter>>