1
0
silverbullet/plug-api/silverbullet-syscall/sync.ts
2023-08-15 20:24:02 +02:00

18 lines
483 B
TypeScript

import { syscall } from "$sb/silverbullet-syscall/syscall.ts";
export function isSyncing(): Promise<boolean> {
return syscall("sync.isSyncing");
}
export function hasInitialSyncCompleted(): Promise<boolean> {
return syscall("sync.hasInitialSyncCompleted");
}
export function scheduleFileSync(path: string): Promise<void> {
return syscall("sync.scheduleFileSync", path);
}
export function scheduleSpaceSync(): Promise<number> {
return syscall("sync.scheduleSpaceSync");
}