Changed basic-auth declarations to be compatible with ES6 style imports

This commit is contained in:
Clément Bourgeois
2015-10-06 21:40:26 +02:00
parent 55f5aec426
commit 7810c2ff78
+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;
}