14 lines
381 B
TypeScript
14 lines
381 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);
|
|
}
|