mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Fix remaining lint errors (#19166)
This commit is contained in:
Vendored
+6
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user