diff --git a/dist/@types/app/assets/javascripts/services/preferencesManager.d.ts b/dist/@types/app/assets/javascripts/services/preferencesManager.d.ts index 7b839c64a..dbafa5338 100644 --- a/dist/@types/app/assets/javascripts/services/preferencesManager.d.ts +++ b/dist/@types/app/assets/javascripts/services/preferencesManager.d.ts @@ -3,8 +3,10 @@ import { ApplicationService, WebPrefKey } from 'snjs'; export declare class PreferencesManager extends ApplicationService { private userPreferences; private loadingPrefs; + private unubscribeStreamItems?; /** @override */ onAppLaunch(): Promise; + deinit(): void; get webApplication(): WebApplication; streamPreferences(): void; private reloadSingleton; diff --git a/dist/@types/app/assets/javascripts/strings.d.ts b/dist/@types/app/assets/javascripts/strings.d.ts index 420a28b1c..191711b64 100644 --- a/dist/@types/app/assets/javascripts/strings.d.ts +++ b/dist/@types/app/assets/javascripts/strings.d.ts @@ -40,3 +40,5 @@ export declare const STRING_AUTHENTICATION_REQUIRED = "Authentication Required"; /** @password_change */ export declare const STRING_FAILED_PASSWORD_CHANGE = "There was an error re-encrypting your items. Your password was changed, but not all your items were properly re-encrypted and synced. You should try syncing again. If all else fails, you should restore your notes from backup."; export declare const STRING_CONFIRM_APP_QUIT_DURING_UPGRADE: string; +export declare const STRING_CONFIRM_APP_QUIT_DURING_PASSCODE_CHANGE: string; +export declare const STRING_CONFIRM_APP_QUIT_DURING_PASSCODE_REMOVAL: string; diff --git a/dist/@types/app/assets/javascripts/utils.d.ts b/dist/@types/app/assets/javascripts/utils.d.ts index 1f8a5d89e..2e76c0a11 100644 --- a/dist/@types/app/assets/javascripts/utils.d.ts +++ b/dist/@types/app/assets/javascripts/utils.d.ts @@ -6,3 +6,4 @@ export declare function dateToLocalizedString(date: Date): string; /** Via https://davidwalsh.name/javascript-debounce-function */ export declare function debounce(this: any, func: any, wait: number, immediate?: boolean): () => void; export declare function isDesktopApplication(): any; +export declare function preventRefreshing(message: string, operation: () => Promise | void): Promise;