DefinitelyTyped/basic-auth/index.d.ts
2016-04-27 21:30:22 -07:00

19 lines
415 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/DefinitelyTyped/DefinitelyTyped
declare function auth(req: Express.Request): auth.BasicAuthResult;
declare namespace auth {
interface BasicAuthResult {
name: string;
pass: string;
}
}
export = auth;