// Type definitions for Swagger-JSDoc // Project: https://github.com/surnet/swagger-jsdoc // Definitions by: Daniel Grove // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== import * as express from "express" import swaggerJSDoc = require('swagger-jsdoc'); const app = express() let options = { swaggerDefinition: { info: { title: 'Hello World', version: '1.0.0', description: 'A sample API' }, host: 'localhost:3000', basePath: '/' }, apis: [ './example/routes*.js', './example/parameters.yaml' ] } }; var spec = swaggerJSDoc(options); app.get('/api-docs.json', function(req, res) { res.setHeader('Content-Type', 'application/json'); res.send(spec); }); =============================================== */ declare module "swagger-jsdoc" { function swaggerJSDoc(options?: any): any; export = swaggerJSDoc; }