From 904bc106f104aed142b1eeefc9c3da7441152b08 Mon Sep 17 00:00:00 2001 From: Brian Caruso Date: Tue, 10 Jan 2017 10:47:17 -0800 Subject: [PATCH] Address tslint issues --- auth0-lock/index.d.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/auth0-lock/index.d.ts b/auth0-lock/index.d.ts index 4593b4e32a..32e473b84a 100644 --- a/auth0-lock/index.d.ts +++ b/auth0-lock/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for auth0-lock v10.9.1 +// Type definitions for auth0-lock 10.9 // Project: http://auth0.com // Definitions by: Brian Caruso // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -104,7 +104,7 @@ interface Auth0LockConstructorOptions { } interface Auth0LockFlashMessageOptions { - type: "success" | "error", + type: "success" | "error"; text: string; } @@ -126,19 +126,17 @@ interface Auth0LockStatic { new (clientId: string, domain: string, options?: Auth0LockConstructorOptions): Auth0LockStatic; // deprecated - getProfile(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void) : void; - getUserInfo(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void) : void; + getProfile(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void): void; + getUserInfo(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void): void; show(options?: Auth0LockShowOptions): void; hide(): void; logout(query: any): void; - on(event: "show", callback: () => void) : void; - on(event: "hide", callback: () => void) : void; - on(event: "unrecoverable_error", callback: (error: Auth0Error) => void) : void; - on(event: "authorization_error", callback: (error: Auth0Error) => void) : void; - on(event: "authenticated", callback: (authResult: any) => void) : void; - on(event: string, callback: (...args: any[]) => void) : void; + on(event: "show" | "hide", callback: () => void): void; + on(event: "unrecoverable_error" | "authorization_error", callback: (error: Auth0Error) => void): void; + on(event: "authenticated", callback: (authResult: any) => void): void; + on(event: string, callback: (...args: any[]) => void): void; } declare var Auth0Lock: Auth0LockStatic;