Skip to content

ComponentErrorMiddleware

Popii


Popii / ComponentErrorMiddleware

Type Alias: ComponentErrorMiddleware<TState, TInput, TLocals>

Section titled “Type Alias: ComponentErrorMiddleware<TState, TInput, TLocals>”

ComponentErrorMiddleware<TState, TInput, TLocals> = (err, pop, next) => Promise<void> | void

Defined in: types.ts:250

Error-handling component middleware — detected by arity (function.length === 3).

TState = any

TInput = any

TLocals = PopiiLocals & Record<string, any>

any

ComponentPop<TState, TInput, TLocals>

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

Promise<void> | void