@types/swagger-express-validator
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/swagger-express-validator

Summary

This package contains type definitions for swagger-express-validator (https://github.com/gargol/swagger-express-validator).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swagger-express-validator.

index.d.ts

import { Request, RequestHandler } from "express";

declare function SwaggerExpressValidator(options: SwaggerExpressValidator.Options): RequestHandler;

declare namespace SwaggerExpressValidator {
    interface Options {
        schema: any;
        validateRequest?: boolean | undefined;
        validateResponse?: boolean | undefined;
        allowNullable?: boolean | undefined;
        requestValidationFn?: ((req: Request, data: any, errors: any) => void) | undefined;
        responseValidationFn?: ((req: Request, data: any, errors: any) => void) | undefined;
    }

    function validator(options: Options): RequestHandler;
}

export = SwaggerExpressValidator;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/express

Credits

These definitions were written by Pinguet62.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.238ts5.8
1.0.238ts5.7
1.0.238latest
1.0.238ts4.5
1.0.238ts4.6
1.0.238ts4.7
1.0.238ts4.8
1.0.238ts4.9
1.0.238ts5.0
1.0.238ts5.1
1.0.238ts5.2
1.0.238ts5.3
1.0.238ts5.4
1.0.238ts5.5
1.0.238ts5.6
1.0.238ts5.9
0.0.026ts2.4
0.0.026ts2.5
0.0.026ts2.6
0.0.026ts2.7
0.0.026ts2.8
0.0.026ts2.9
0.0.026ts3.0
0.0.026ts3.1
0.0.026ts3.2
0.0.026ts3.3
0.0.026ts3.4
0.0.026ts3.5
1.0.00ts3.7
1.0.00ts3.8
1.0.00ts3.9
1.0.00ts4.0
1.0.00ts4.1
1.0.00ts4.2
1.0.00ts4.3
1.0.00ts4.4
0.0.10ts3.6

Version History

VersionDownloads (Last 7 Days)Published
1.0.238
1.0.10
1.0.00
0.0.10
0.0.026

Package Sidebar

Install

npm i @types/swagger-express-validator

Weekly Downloads

64

Version

1.0.2

License

MIT

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • types