@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/swagger-express-validator

Weekly Downloads

84

Version

1.0.2

License

MIT

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • types