mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #31604 from jamesadarich/patch-1
[passport-http] Fix incorrect interface extension
This commit is contained in:
Vendored
+3
-2
@@ -3,6 +3,7 @@
|
||||
// Definitions by: Christophe Vidal <https://github.com/krizalys>
|
||||
// Tomek Łaziuk <https://github.com/tlaziuk>
|
||||
// Chris Barth <https://github.com/cjbarth>
|
||||
// James Adarich <https://github.com/jamesadarich>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -52,7 +53,7 @@ export type DigestValidateFunction = (
|
||||
done: (error: any, valid: boolean) => void,
|
||||
) => any;
|
||||
|
||||
export class BasicStrategy extends passport.Strategy {
|
||||
export class BasicStrategy implements passport.Strategy {
|
||||
constructor(verify: BasicVerifyFunction);
|
||||
constructor(options: BasicStrategyOptions<false>, verify: BasicVerifyFunction);
|
||||
constructor(options: BasicStrategyOptions<true>, verify: BasicVerifyFunctionWithRequest);
|
||||
@@ -61,7 +62,7 @@ export class BasicStrategy extends passport.Strategy {
|
||||
authenticate(req: express.Request, options?: object): void;
|
||||
}
|
||||
|
||||
export class DigestStrategy extends passport.Strategy {
|
||||
export class DigestStrategy implements passport.Strategy {
|
||||
constructor(secret: DigestSecretFunction, validate?: DigestValidateFunction);
|
||||
constructor(options: DigestStrategyOptions, secret: DigestSecretFunction, validate?: DigestValidateFunction);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user