mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
502 B
TypeScript
20 lines
502 B
TypeScript
// 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;
|
|
}
|