Skip to content

PopiiRegularMiddleware

Popii


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.

TState = any

TInput = any

TLocals = PopiiLocals & Record<string, any>

Pop<TState, TInput, TLocals>

(err?) => Promise<void> | void

Promise<void> | void