mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
fix: passport-http-bearer Strategy class should implement interface (#25526)
bump up version to 0.0.2
This commit is contained in:
parent
7b519d78ed
commit
0fa5da1423
@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "definitely-typed",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
2
types/passport-http-bearer/index.d.ts
vendored
2
types/passport-http-bearer/index.d.ts
vendored
@ -28,7 +28,7 @@ interface VerifyFunctionWithRequest {
|
||||
(req: express.Request, token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void;
|
||||
}
|
||||
|
||||
declare class Strategy extends passport.Strategy {
|
||||
declare class Strategy implements passport.Strategy {
|
||||
constructor(verify: VerifyFunction);
|
||||
constructor(options: IStrategyOptions, verify: VerifyFunction);
|
||||
constructor(options: IStrategyOptions, verify: VerifyFunctionWithRequest);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user