-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
6,567 additions
and
5,352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,6 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
# VS Code metadata | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx --no-install lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,49 @@ | ||
// Type definitions for [swagger-routes-express] [3.1.3] | ||
// Project: https://github.com/davesag/swagger-routes-express | ||
// Definitions by: Dave Sag <https://github.com/davesag> | ||
// Marco Rinck <https://github.com/marcorinck> | ||
// Rodrigo Feijao <https://github.com/rodrigofeijao> | ||
// Definitions: https://github.com/davesag/swagger-routes-express | ||
// TypeScript Version: 3.9.x | ||
declare module 'swagger-routes-express' { | ||
import {Handler, Router} from "express"; | ||
import { Handler, Router } from 'express' | ||
|
||
interface Controllers { | ||
[key: string]: Handler; | ||
[key: string]: Handler | ||
} | ||
|
||
interface ConnectorOptions { | ||
security?: { | ||
[key: string]: Handler; | ||
}; | ||
security?: { | ||
[key: string]: Handler | ||
} | ||
|
||
middleware?: { | ||
[key: string]: Handler; | ||
}; | ||
middleware?: { | ||
[key: string]: Handler | ||
} | ||
|
||
onCreateRoute?: (method: string, descriptor: any[]) => void; | ||
onCreateRoute?: (method: string, descriptor: any[]) => void | ||
|
||
apiSeparator?: string; | ||
notImplemented?: Handler; | ||
notFound?: Handler; | ||
rootTag?: string; | ||
variables?: object; | ||
apiSeparator?: string | ||
notImplemented?: Handler | ||
notFound?: Handler | ||
rootTag?: string | ||
variables?: object | ||
} | ||
|
||
interface SummariseOptions { | ||
INVALID_VERSION?: string | ||
} | ||
|
||
export function connector(api: Controllers, apiDefinition: object, options?: ConnectorOptions): (router: Router) => void; | ||
export function summarise(apiDefinition: object, options?: SummariseOptions): void; | ||
interface Summary { | ||
info: { | ||
name: string | ||
description: string | ||
version: string | ||
} | ||
|
||
paths: { | ||
[key: string]: string[] | ||
} | ||
} | ||
|
||
export function connector( | ||
api: Controllers, | ||
apiDefinition: object, | ||
options?: ConnectorOptions | ||
): (router: Router) => void | ||
|
||
export function summarise(apiDefinition: object, options?: SummariseOptions): Summary | ||
} |
Oops, something went wrong.