@types/swagger-jsdoc
Advanced tools
Comparing version 0.0.2 to 3.0.0
@@ -1,14 +0,16 @@ | ||
// Type definitions for Swagger-JSDoc | ||
// Type definitions for swagger-jsdoc 3.0 | ||
// Project: https://github.com/surnet/swagger-jsdoc | ||
// Definitions by: Daniel Grove <https://github.com/drGrove> | ||
// Neil Bryson Cargamento <https://github.com/neilbryson> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
// TypeScript Version: 2.8 | ||
/* =================== USAGE =================== | ||
import * as express from "express" | ||
import swaggerJSDoc = require('swagger-jsdoc'); | ||
const app = express() | ||
import * as express from 'express'; | ||
import swaggerJSDoc, { Options } from 'swagger-jsdoc'; | ||
let options = { | ||
const app = express(); | ||
const options: Options = { | ||
swaggerDefinition: { | ||
@@ -30,3 +32,3 @@ info: { | ||
var spec = swaggerJSDoc(options); | ||
const spec = swaggerJSDoc(options); | ||
@@ -40,5 +42,28 @@ app.get('/api-docs.json', function(req, res) { | ||
declare module "swagger-jsdoc" { | ||
function swaggerJSDoc(options?: any): any; | ||
export = swaggerJSDoc; | ||
export interface ApiInformation { | ||
description?: string; | ||
title: string; | ||
version: string; | ||
} | ||
export interface ServerInformation { | ||
url: string; | ||
[key: string]: any; | ||
} | ||
export interface SwaggerDefinition { | ||
basePath?: string; | ||
host?: string; | ||
info: ApiInformation; | ||
openapi?: string; | ||
servers?: ReadonlyArray<ServerInformation>; | ||
[key: string]: any; | ||
} | ||
export interface Options { | ||
apis?: ReadonlyArray<string>; | ||
swaggerDefinition: SwaggerDefinition; | ||
[key: string]: any; | ||
} | ||
export default function swaggerJSDoc(options?: Options): any; |
{ | ||
"name": "@types/swagger-jsdoc", | ||
"version": "0.0.2", | ||
"description": "TypeScript definitions for Swagger-JSDoc", | ||
"version": "3.0.0", | ||
"description": "TypeScript definitions for swagger-jsdoc", | ||
"license": "MIT", | ||
@@ -11,13 +11,20 @@ "contributors": [ | ||
"githubUsername": "drGrove" | ||
}, | ||
{ | ||
"name": "Neil Bryson Cargamento", | ||
"url": "https://github.com/neilbryson", | ||
"githubUsername": "neilbryson" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/swagger-jsdoc" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "d76315cfdaf5aad0118c28ce3d28802845df1583ec822fd55a4990fe795aa288", | ||
"typeScriptVersion": "2.2" | ||
"typesPublisherContentHash": "a0b654194b44345be29a781501c4e2fc5f72319f8167cb0593647d5f2c50ceea", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -5,9 +5,9 @@ # Installation | ||
# Summary | ||
This package contains type definitions for Swagger-JSDoc (https://github.com/surnet/swagger-jsdoc). | ||
This package contains type definitions for swagger-jsdoc (https://github.com/surnet/swagger-jsdoc). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swagger-jsdoc | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swagger-jsdoc | ||
Additional Details | ||
* Last updated: Thu, 09 Nov 2017 15:19:58 GMT | ||
* Last updated: Mon, 22 Jul 2019 19:44:31 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Daniel Grove <https://github.com/drGrove>. | ||
These definitions were written by Daniel Grove <https://github.com/drGrove>, and Neil Bryson Cargamento <https://github.com/neilbryson>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4303
55
1