ComponentErrorMiddleware
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).
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”any
ComponentPop<TState, TInput, TLocals>
(err?) => Promise<void> | void
Returns
Section titled “Returns”Promise<void> | void