ComponentRegularMiddleware
Popii / ComponentRegularMiddleware
Type Alias: ComponentRegularMiddleware<TState, TInput, TLocals>
Section titled “Type Alias: ComponentRegularMiddleware<TState, TInput, TLocals>”ComponentRegularMiddleware<
TState,TInput,TLocals> = (pop,next) =>Promise<void> |void
Defined in: types.ts:246
Standard component middleware — receives the component pop context and a next function.
Type Parameters
Section titled “Type Parameters”TState
Section titled “TState”TState = any
TInput
Section titled “TInput”TInput = any
TLocals
Section titled “TLocals”TLocals = PopiiLocals & Record<string, any>
Parameters
Section titled “Parameters”ComponentPop<TState, TInput, TLocals>
(err?) => Promise<void> | void
Returns
Section titled “Returns”Promise<void> | void