Unwrap all lone ambient external modules

This commit is contained in:
Ryan Cavanaugh
2016-04-22 14:12:45 -07:00
parent fa7a5ddc9b
commit 4a433abbf4
616 changed files with 73977 additions and 74850 deletions
+18 -19
View File
@@ -5,28 +5,27 @@
/// <reference path="../express/express.d.ts" />
declare module "errorhandler" {
import * as express from 'express';
function errorHandler(options?: errorHandler.Options): express.ErrorRequestHandler;
import * as express from 'express';
namespace errorHandler {
interface LoggingCallback {
(err: Error, str: string, req: express.Request, res: express.Response): void;
}
declare function errorHandler(options?: errorHandler.Options): express.ErrorRequestHandler;
interface Options {
/**
* Defaults to true.
*
* Possible values:
* true : Log errors using console.error(str).
* false : Only send the error back in the response.
* A function : pass the error to a function for handling.
*/
log: boolean | LoggingCallback;
}
declare namespace errorHandler {
interface LoggingCallback {
(err: Error, str: string, req: express.Request, res: express.Response): void;
}
export = errorHandler;
interface Options {
/**
* Defaults to true.
*
* Possible values:
* true : Log errors using console.error(str).
* false : Only send the error back in the response.
* A function : pass the error to a function for handling.
*/
log: boolean | LoggingCallback;
}
}
export = errorHandler;