mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
sync service abstraction
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
export interface SyncService {
|
||||
export abstract class SyncService {
|
||||
syncInProgress: boolean;
|
||||
|
||||
getLastSync(): Promise<Date>;
|
||||
setLastSync(date: Date): Promise<any>;
|
||||
syncStarted(): void;
|
||||
syncCompleted(successfully: boolean): void;
|
||||
fullSync(forceSync: boolean): Promise<boolean>;
|
||||
getLastSync: () => Promise<Date>;
|
||||
setLastSync: (date: Date) => Promise<any>;
|
||||
syncStarted: () => void;
|
||||
syncCompleted: (successfully: boolean) => void;
|
||||
fullSync: (forceSync: boolean) => Promise<boolean>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user