mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Address tslint issues
This commit is contained in:
Vendored
+8
-10
@@ -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 <https://github.com/carusology>
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user