DefinitelyTyped/basic-auth/index.d.ts
2017-02-14 18:24:56 +01:00

20 lines
480 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
/// <reference types="node" />
import * as http from 'http';
declare function auth(req: http.IncomingMessage): auth.BasicAuthResult;
declare namespace auth {
interface BasicAuthResult {
name: string;
pass: string;
}
}
export = auth;