mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #1700 from Jaddream/master
add missing Express function basicAuth
This commit is contained in:
Vendored
+2
@@ -1451,6 +1451,8 @@ declare module "express" {
|
||||
* @param callback or username
|
||||
* @param realm
|
||||
*/
|
||||
export function basicAuth(callback: (user: string, pass: string, fn : Function) => void, realm?: string): Handler;
|
||||
|
||||
export function basicAuth(callback: (user: string, pass: string) => boolean, realm?: string): Handler;
|
||||
|
||||
export function basicAuth(user: string, pass: string, realm?: string): Handler;
|
||||
|
||||
Reference in New Issue
Block a user