mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Merge pull request #6172 from moonpyk/master
Changed basic-auth declarations to be compatible with ES6 style imports
This commit is contained in:
Vendored
+8
-8
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user