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
+17 -18
View File
@@ -5,26 +5,25 @@
/// <reference path="../express/express.d.ts" />
declare module 'api-error-handler' {
import * as express from 'express';
namespace apiErrorHandler {
import * as express from 'express';
// Body response: the JSON returned by api-error-handler
// See https://github.com/expressjs/api-error-handler/blob/1.0.0/index.js
interface Response {
status: number;
stack?: string;
message: string;
declare namespace apiErrorHandler {
// Client errors
code?: any;
name?: string;
type?: any;
}
// Body response: the JSON returned by api-error-handler
// See https://github.com/expressjs/api-error-handler/blob/1.0.0/index.js
interface Response {
status: number;
stack?: string;
message: string;
// Client errors
code?: any;
name?: string;
type?: any;
}
function apiErrorHandler(options?: any): express.ErrorRequestHandler;
export = apiErrorHandler;
}
declare function apiErrorHandler(options?: any): express.ErrorRequestHandler;
export = apiErrorHandler;