14 lines
411 B
TypeScript
14 lines
411 B
TypeScript
import { SysCallMapping } from "../../plugos/system.ts";
|
|
import type { Client } from "../client.ts";
|
|
|
|
export function syncSyscalls(editor: Client): SysCallMapping {
|
|
return {
|
|
"sync.isSyncing": (): Promise<boolean> => {
|
|
return editor.syncService.isSyncing();
|
|
},
|
|
"sync.hasInitialSyncCompleted": (): Promise<boolean> => {
|
|
return editor.syncService.hasInitialSyncCompleted();
|
|
},
|
|
};
|
|
}
|