@types/passport-http-bearer
Advanced tools
Comparing version 1.0.37 to 1.0.38
@@ -29,10 +29,20 @@ // Type definitions for passport-http-bearer 1.0.1 | ||
interface IKoaContextContainer { ctx: koa.Context; } | ||
interface IKoaContextContainer { | ||
ctx: koa.Context; | ||
} | ||
type KoaPassportExpressRequestMock = Partial<express.Request> & IKoaContextContainer; | ||
interface VerifyFunctionWithRequest { | ||
(req: express.Request, token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void; | ||
( | ||
req: express.Request, | ||
token: string, | ||
done: (error: any, user?: any, options?: IVerifyOptions | string) => void, | ||
): void; | ||
} | ||
interface VerifyFunctionWithContext { | ||
(req: KoaPassportExpressRequestMock, token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void; | ||
( | ||
req: KoaPassportExpressRequestMock, | ||
token: string, | ||
done: (error: any, user?: any, options?: IVerifyOptions | string) => void, | ||
): void; | ||
} | ||
@@ -39,0 +49,0 @@ |
{ | ||
"name": "@types/passport-http-bearer", | ||
"version": "1.0.37", | ||
"version": "1.0.38", | ||
"description": "TypeScript definitions for passport-http-bearer", | ||
@@ -27,4 +27,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-http-bearer", | ||
}, | ||
"typesPublisherContentHash": "174115ca98d2a192ce15ae4e5dcc80ddc016f8bf9d17bd5d44dabd3544359e9a", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "bc7b4d446740ec572f0f0eca1a54b568908661617876a6881ad93f4ffbbf09b8", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -39,10 +39,20 @@ # Installation | ||
interface IKoaContextContainer { ctx: koa.Context; } | ||
interface IKoaContextContainer { | ||
ctx: koa.Context; | ||
} | ||
type KoaPassportExpressRequestMock = Partial<express.Request> & IKoaContextContainer; | ||
interface VerifyFunctionWithRequest { | ||
(req: express.Request, token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void; | ||
( | ||
req: express.Request, | ||
token: string, | ||
done: (error: any, user?: any, options?: IVerifyOptions | string) => void, | ||
): void; | ||
} | ||
interface VerifyFunctionWithContext { | ||
(req: KoaPassportExpressRequestMock, token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void; | ||
( | ||
req: KoaPassportExpressRequestMock, | ||
token: string, | ||
done: (error: any, user?: any, options?: IVerifyOptions | string) => void, | ||
): void; | ||
} | ||
@@ -66,4 +76,4 @@ | ||
### Additional Details | ||
* Last updated: Wed, 07 Jul 2021 17:02:26 GMT | ||
* Dependencies: [@types/passport](https://npmjs.com/package/@types/passport), [@types/express](https://npmjs.com/package/@types/express), [@types/koa](https://npmjs.com/package/@types/koa) | ||
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/koa](https://npmjs.com/package/@types/koa), [@types/passport](https://npmjs.com/package/@types/passport) | ||
* Global values: none | ||
@@ -70,0 +80,0 @@ |
6494
51
81