From 02b38a26524ea1e4248b7661e5cdff9859115bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Fri, 8 Dec 2017 18:29:24 +0100 Subject: [PATCH] lint --- types/passport/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/passport/index.d.ts b/types/passport/index.d.ts index 2e684f2473..935ee96966 100644 --- a/types/passport/index.d.ts +++ b/types/passport/index.d.ts @@ -49,7 +49,7 @@ declare namespace passport { passReqToCallback?: boolean; } - interface Authenticator { + interface Authenticator { use(strategy: Strategy): this; use(name: string, strategy: Strategy): this; unuse(name: string): this; @@ -76,7 +76,7 @@ declare namespace passport { authenticate(this: StrategyCreated, req: express.Request, options?: any): any; } - type StrategyCreatedStatic = { + interface StrategyCreatedStatic { success(user: object, info?: object): void; fail(challenge: string, status?: number): void; redirect(url: string, status?: number): void; @@ -86,7 +86,7 @@ declare namespace passport { type StrategyCreated = { [P in keyof O]: O[P]; - } + }; interface Profile { provider: string; @@ -107,7 +107,7 @@ declare namespace passport { }>; } - interface Framework { + interface Framework { initialize(passport: Authenticator, options?: any): (...args: any[]) => InitializeRet; authenticate(passport: Authenticator, name: string, options?: any, callback?: (...args: any[]) => any): (...args: any[]) => AuthenticateRet; authorize?(passport: Authenticator, name: string, options?: any, callback?: (...args: any[]) => any): (...args: any[]) => AuthorizeRet;