From 259fa774f30518cf6c501a9a63daf074ed1f44f3 Mon Sep 17 00:00:00 2001 From: Tyler Date: Mon, 4 Dec 2023 10:31:21 -0800 Subject: [PATCH] Add B0yc3y commit --- ts/index.d.ts | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/ts/index.d.ts b/ts/index.d.ts index 2b7a107..353c5fe 100644 --- a/ts/index.d.ts +++ b/ts/index.d.ts @@ -2,7 +2,7 @@ export declare function init(tenantId: string, options?: object): Promise; // addInitCallback() -export declare function addInitCallback(callback: function): void; +export declare function addInitCallback(callback: Function): void; // user interface User { @@ -22,10 +22,10 @@ interface User { userId?: number; userUuid?: string; // methods - update?: function; - updatePassword?: function; - getTotp?: function; - hasRole?: function; + update?: Function; + updatePassword?: Function; + getTotp?: Function; + hasRole?: Function; confirmedAt?: string; // Deprecated } export declare const user: User; @@ -36,7 +36,7 @@ interface Tokens { accessTokenName: string; idToken: string; idTokenName: string; - refresh: function; + refresh: Function; } export declare const tokens: Tokens; @@ -44,7 +44,7 @@ export declare const tokens: Tokens; interface Mode { value: "live" | "test"; reason?: string; - setMode?: function; + setMode?: Function; } export declare const mode: Mode; @@ -167,11 +167,11 @@ export declare function signup({ password?: string; channel?: "sms" | "email"; redirect?: string | boolean; - handleUpstreamResponse?: function; - handleMfaRequired?: function; - handlePkceRequired?: function; - handleTokens?: function; - handleRedirect?: function; + handleUpstreamResponse?: Function; + handleMfaRequired?: Function; + handlePkceRequired?: Function; + handleTokens?: Function; + handleRedirect?: Function; }): Promise; // login() @@ -219,11 +219,11 @@ export declare function login({ verificationCode?: string; channel?: "sms" | "email"; redirect?: string | boolean; - handleUpstreamResponse?: function; - handleMfaRequired?: function; - handlePkceRequired?: function; - handleTokens?: function; - handleRedirect?: function; + handleUpstreamResponse?: Function; + handleMfaRequired?: Function; + handlePkceRequired?: Function; + handleTokens?: Function; + handleRedirect?: Function; options?: object; }): Promise;