Skip to main content
Version: 11.x

Type Alias: CreateContextCallback<TContext, TFunction>

CreateContextCallback<TContext, TFunction>: PartialIf<object extends TContext ? true : false, { createContext: TFunction; }>

Defined in: packages/server/src/unstable-core-do-not-import/rootConfig.ts:112

Adds a createContext option with a given callback function If context is the default value, then the createContext option is optional

Type Parameters

Type Parameter
TContext
TFunction extends (...args) => any