feat: cancelable challenges

This commit is contained in:
Mo Bitar
2020-09-28 09:26:28 -05:00
parent ddbf50ee82
commit 3057eaafb4
7 changed files with 12 additions and 35 deletions

View File

@@ -17,7 +17,7 @@ export declare class DesktopManager extends ApplicationService {
updateObservers: {
callback: UpdateObserverCallback;
}[];
isDesktop: any;
isDesktop: boolean;
dataLoaded: boolean;
lastSearchedText?: string;
private removeComponentObserver?;
@@ -45,7 +45,6 @@ export declare class DesktopManager extends ApplicationService {
};
desktop_deregisterComponentActivationObserver(observer: ComponentActivationObserver): void;
notifyComponentActivation(component: SNComponent): Promise<void>;
onExtensionsReady(): void;
desktop_requestBackupFile(): Promise<string | undefined>;
desktop_didBeginBackup(): void;
desktop_didFinishBackup(success: boolean): void;

View File

@@ -10,7 +10,6 @@ export declare enum AppStateEvent {
EditorFocused = 5,
BeganBackupDownload = 6,
EndedBackupDownload = 7,
DesktopExtsReady = 8,
WindowDidFocus = 9,
WindowDidBlur = 10
}
@@ -64,9 +63,5 @@ export declare class AppState {
editorDidFocus(eventSource: EventSource): void;
beganBackupDownload(): void;
endedBackupDownload(success: boolean): void;
/**
* When the desktop appplication extension server is ready.
*/
desktopExtensionsReady(): void;
}
export {};

View File

@@ -5,5 +5,5 @@ export declare function getPlatformString(): string;
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> | void): Promise<void>;
export declare function isDesktopApplication(): boolean;