mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
449 B
TypeScript
18 lines
449 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
|
|
|
|
import * as Express from 'express';
|
|
|
|
declare function auth(req: Express.Request): auth.BasicAuthResult;
|
|
|
|
declare namespace auth {
|
|
interface BasicAuthResult {
|
|
name: string;
|
|
pass: string;
|
|
}
|
|
}
|
|
|
|
export = auth;
|