Merge pull request #6172 from moonpyk/master

Changed basic-auth declarations to be compatible with ES6 style imports
This commit is contained in:
Masahiro Wakame
2015-10-07 21:56:21 +09:00
+8 -8
View File
@@ -5,15 +5,15 @@
/// <reference path="../express/express.d.ts" />
declare module BasicAuth {
export interface BasicAuthResult {
name:string;
pass:string;
}
}
declare module "basic-auth" {
function auth(req: Express.Request): BasicAuth.BasicAuthResult;
function auth(req: Express.Request): auth.BasicAuthResult;
namespace auth {
interface BasicAuthResult {
name: string;
pass: string;
}
}
export = auth;
}