Type alias ErrorHandlingMiddlewareWithOption<ThisType, ResType>
ErrorHandlingMiddlewareWithOption<ThisType, ResType>: ((this, err, res, next) => void | Promise<void>)
Type Parameters
-
ThisType = any
-
ResType = any
Type declaration
-
- (this, err, res, next): void | Promise<void>
-
Parameters
-
this: ThisType
-
err: NativeError
-
res: ResType | null
-
Returns void | Promise<void>