// Type definitions for basic-auth // Project: https://github.com/jshttp/basic-auth // Definitions by: Clément Bourgeois // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import * as http from 'http'; declare function auth(req: http.IncomingMessage): auth.BasicAuthResult; declare namespace auth { interface BasicAuthResult { name: string; pass: string; } } export = auth;