@lytical/app 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:stream';
|
|
2
|
-
import { type Request, type RequestHandler, type Response, type NextFunction } from 'express';
|
|
2
|
+
import { type Request, type RequestHandler, type Response, type NextFunction, type ErrorRequestHandler } from 'express';
|
|
3
3
|
import type { app_listening_cfg_t, app_server_cfg_t } from './types';
|
|
4
4
|
/** events emitted by the app */
|
|
5
5
|
export declare enum app_evt {
|
|
@@ -112,6 +112,8 @@ export type app_route_handler_dependency_t = RequestHandler | {
|
|
|
112
112
|
export type app_route_handler_info_t = {
|
|
113
113
|
/** route handler dependencies */
|
|
114
114
|
dependency?: app_route_handler_dependency_t | app_route_handler_dependency_t[];
|
|
115
|
+
/** optional error handler for the route */
|
|
116
|
+
error_handler?: ErrorRequestHandler;
|
|
115
117
|
/** http method or methods */
|
|
116
118
|
http_method?: string | string[];
|
|
117
119
|
/** the route path or pattern */
|
package/package.json
CHANGED