@naturalcycles/backend-lib 4.10.0 → 4.10.1
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.
|
@@ -21,8 +21,8 @@ export interface BackendRequest extends Request {
|
|
|
21
21
|
bodyParserTimeout?: NodeJS.Timeout;
|
|
22
22
|
}
|
|
23
23
|
export type BackendResponse = Response;
|
|
24
|
-
export type BackendRequestHandler = (req: BackendRequest, res: BackendResponse, next: NextFunction) => Promisable<
|
|
25
|
-
export type BackendErrorRequestHandler = (err: any, req: BackendRequest, res: BackendResponse, next: NextFunction) => Promisable<
|
|
24
|
+
export type BackendRequestHandler = (req: BackendRequest, res: BackendResponse, next: NextFunction) => Promisable<any>;
|
|
25
|
+
export type BackendErrorRequestHandler = (err: any, req: BackendRequest, res: BackendResponse, next: NextFunction) => Promisable<any>;
|
|
26
26
|
export type BackendRouter = IRouter;
|
|
27
27
|
export type BackendApplication = Application;
|
|
28
28
|
declare module 'http' {
|
package/package.json
CHANGED
|
@@ -30,14 +30,14 @@ export type BackendRequestHandler = (
|
|
|
30
30
|
req: BackendRequest,
|
|
31
31
|
res: BackendResponse,
|
|
32
32
|
next: NextFunction,
|
|
33
|
-
) => Promisable<
|
|
33
|
+
) => Promisable<any>
|
|
34
34
|
|
|
35
35
|
export type BackendErrorRequestHandler = (
|
|
36
36
|
err: any,
|
|
37
37
|
req: BackendRequest,
|
|
38
38
|
res: BackendResponse,
|
|
39
39
|
next: NextFunction,
|
|
40
|
-
) => Promisable<
|
|
40
|
+
) => Promisable<any>
|
|
41
41
|
|
|
42
42
|
export type BackendRouter = IRouter
|
|
43
43
|
export type BackendApplication = Application
|