Skip to content

Commit

Permalink
Removed Express dependency.
Browse files Browse the repository at this point in the history
This module has nothing to do with Express. Even the the example code uses plain `http.IncomingMessage`, not `Express.Request`.

https://github.com/jshttp/basic-auth
  • Loading branch information
Victor Widell authored Feb 13, 2017
1 parent a01e020 commit c8e9da2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basic-auth/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// Definitions by: Clément Bourgeois <https://github.com/moonpyk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as Express from 'express';
import * as http from 'http';

declare function auth(req: Express.Request): auth.BasicAuthResult;
declare function auth(req: http.IncomingMessage): auth.BasicAuthResult;

declare namespace auth {
interface BasicAuthResult {
Expand Down

0 comments on commit c8e9da2

Please sign in to comment.