Fix remaining lint errors (#19166)

This commit is contained in:
Andy
2017-08-20 15:37:53 -07:00
committed by GitHub
parent 83230ae14e
commit 924fafffc0
861 changed files with 2641 additions and 2198 deletions
+6 -6
View File
@@ -32,17 +32,17 @@ export namespace pre {
/**
* Automatically reuse incoming request header as the request id.
*/
function reqIdHeaders( options: {headers: string[]} ): RequestHandler;
function reqIdHeaders(options: {headers: string[]}): RequestHandler;
/**
* Checks req.urls query params with strict key/val format and rejects non-strict requests with status code 400.
*/
function strictQueryParams( options?: {message: string} ): RequestHandler;
function strictQueryParams(options?: {message: string}): RequestHandler;
/**
* Regexp to capture curl user-agents
*/
function userAgentConnection( options?: {userAgentRegExp: any} ): RequestHandler;
function userAgentConnection(options?: {userAgentRegExp: any}): RequestHandler;
}
// *************** This module includes the following header parser plugins:
@@ -184,7 +184,7 @@ export function bodyParser(options?: BodyParserOptions): RequestHandler[];
/**
* Reads the body of the request.
*/
export function bodyReader( options?: {maxBodySize?: number} ): RequestHandler;
export function bodyReader(options?: {maxBodySize?: number}): RequestHandler;
export interface UrlEncodedBodyParser {
mapParams?: boolean;
@@ -392,13 +392,13 @@ export interface MetricsCallbackOptions {
* Listens to the server's after event and emits information about that request (5.x compatible only).
*
* ```
* server.on('after', plugins.metrics( (err, metrics) =>
* server.on('after', plugins.metrics((err, metrics) =>
* {
* // metrics is an object containing information about the request
* }));
* ```
*/
export function metrics(opts: {server: Server}, callback: (options: MetricsCallback) => any ): (...args: any[]) => void;
export function metrics(opts: {server: Server}, callback: (options: MetricsCallback) => any): (...args: any[]) => void;
/**
* Parse the client's request for an OAUTH2 access tokensTable