mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Added typings for basic-auth
This commit is contained in:
19
basic-auth/basic-auth.d.ts
vendored
Normal file
19
basic-auth/basic-auth.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Type definitions for basic-auth
|
||||
// Project: https://github.com/jshttp/basic-auth
|
||||
// Definitions by: Clément Bourgeois <https://github.com/moonpyk>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <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;
|
||||
|
||||
export = auth;
|
||||
}
|
||||
Reference in New Issue
Block a user