PopiiRegularMiddleware
Popii / PopiiRegularMiddleware
Type Alias: PopiiRegularMiddleware<TState, TInput, TLocals>
Section titled “Type Alias: PopiiRegularMiddleware<TState, TInput, TLocals>”PopiiRegularMiddleware<
TState,TInput,TLocals> = (pop,next) =>Promise<void> |void
Defined in: types.ts:230
Standard middleware — receives the pop context and a next function. Call next(err) to forward an error.
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”Pop<TState, TInput, TLocals>
(err?) => Promise<void> | void
Returns
Section titled “Returns”Promise<void> | void