mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
[basic-auth] Copy jsdoc
This commit is contained in:
@@ -3,4 +3,4 @@ import auth = require('basic-auth');
|
||||
|
||||
auth(null);
|
||||
|
||||
auth.parse('QmFzaWM6QXV0aA==');
|
||||
auth.parse('Basic QmFzaWM6QXV0aA==');
|
||||
|
||||
8
types/basic-auth/index.d.ts
vendored
8
types/basic-auth/index.d.ts
vendored
@@ -15,7 +15,13 @@ declare namespace auth {
|
||||
pass: string;
|
||||
}
|
||||
|
||||
// See https://github.com/jshttp/basic-auth/blob/v1.1.0/index.js#L87-L95
|
||||
/**
|
||||
* Parse basic auth to object.
|
||||
*
|
||||
* @param {string} string
|
||||
* @return {object}
|
||||
* @public
|
||||
*/
|
||||
function parse(authorizationHeader: string): auth.BasicAuthResult | undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user