@jaypie/express 1.2.18 → 1.2.19
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Request, Response } from "express";
|
|
2
2
|
export type JaypieHandlerSetup = (req: Request, res: Response) => Promise<void> | void;
|
|
3
3
|
export type JaypieHandlerTeardown = (req: Request, res: Response) => Promise<void> | void;
|
|
4
|
-
export type JaypieHandlerValidate = (req: Request, res: Response) => Promise<boolean> | boolean;
|
|
4
|
+
export type JaypieHandlerValidate = (req: Request, res: Response) => Promise<boolean | void> | boolean | void;
|
|
5
5
|
export type ExpressHandlerLocals = (req: Request, res: Response) => Promise<unknown> | unknown;
|
|
6
6
|
export interface ExpressHandlerOptions {
|
|
7
7
|
chaos?: string;
|
|
@@ -2,7 +2,7 @@ import type { Request, Response } from "express";
|
|
|
2
2
|
import type { StreamFormat } from "@jaypie/aws";
|
|
3
3
|
export type JaypieStreamHandlerSetup = (req: Request, res: Response) => Promise<void> | void;
|
|
4
4
|
export type JaypieStreamHandlerTeardown = (req: Request, res: Response) => Promise<void> | void;
|
|
5
|
-
export type JaypieStreamHandlerValidate = (req: Request, res: Response) => Promise<boolean> | boolean;
|
|
5
|
+
export type JaypieStreamHandlerValidate = (req: Request, res: Response) => Promise<boolean | void> | boolean | void;
|
|
6
6
|
export type ExpressStreamHandlerLocals = (req: Request, res: Response) => Promise<unknown> | unknown;
|
|
7
7
|
export interface ExpressStreamHandlerOptions {
|
|
8
8
|
chaos?: string;
|