From 7810c2ff7872e9d27d40adc4d90f762ef30e2410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Bourgeois?= Date: Tue, 6 Oct 2015 21:40:26 +0200 Subject: [PATCH] Changed basic-auth declarations to be compatible with ES6 style imports --- basic-auth/basic-auth.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/basic-auth/basic-auth.d.ts b/basic-auth/basic-auth.d.ts index e03998997..e25f217e4 100644 --- a/basic-auth/basic-auth.d.ts +++ b/basic-auth/basic-auth.d.ts @@ -5,15 +5,15 @@ /// -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; }