1
0
silverbullet/plug-api/silverbullet-syscall/sync.ts

14 lines
381 B
TypeScript
Raw Normal View History

import { syscall } from "$sb/silverbullet-syscall/syscall.ts";
2023-01-13 14:41:29 +00:00
export function isSyncing(): Promise<boolean> {
return syscall("sync.isSyncing");
2023-01-13 14:41:29 +00:00
}
export function hasInitialSyncCompleted(): Promise<boolean> {
return syscall("sync.hasInitialSyncCompleted");
2023-01-13 14:41:29 +00:00
}
export function scheduleFileSync(path: string): Promise<void> {
return syscall("sync.scheduleFileSync", path);
}