We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af69e3c commit a8040d5Copy full SHA for a8040d5
1 file changed
types/index.d.ts
@@ -12,7 +12,9 @@ export function init(swaggerPath: string, options?: ajvValidatorOptions): void;
12
* Middleware that validates the request against the swagger
13
* file, according to the request method and route
14
*/
15
-export function validate(req: object, res: object, next: Function): void;
+declare function validate(ctx: any, next: Function): void; // koa
16
+declare function validate(req: any, res: any, next: Function): void; // express
17
+export { validate };
18
19
export class InputValidationError extends Error {
20
errors: Array<ErrorDetails | string>;
0 commit comments