We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f0643 commit b482359Copy full SHA for b482359
basic-auth/basic-auth-tests.ts
@@ -0,0 +1,5 @@
1
+/// <reference path="basic-auth.d.ts" />
2
+
3
+import auth = require('basic-auth');
4
5
+auth(null);
basic-auth/basic-auth.d.ts
@@ -0,0 +1,19 @@
+// 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/borisyankov/DefinitelyTyped
6
+/// <reference path="../express/express.d.ts" />
7
8
+declare module BasicAuth {
9
+ export interface BasicAuthResult {
10
+ name:string;
11
+ pass:string;
12
+ }
13
+}
14
15
+declare module "basic-auth" {
16
+ function auth(req: Express.Request): BasicAuth.BasicAuthResult;
17
18
+ export = auth;
19
0 commit comments