fix(electron): type on handlers (#3747)

This commit is contained in:
Alex Yang
2023-08-14 21:06:25 -04:00
committed by GitHub
parent 720a90fe93
commit 8487b2c4af
4 changed files with 18 additions and 6 deletions

View File

@@ -94,7 +94,7 @@ export type DBHandlers = {
getDocAsUpdates: (
workspaceId: string,
subdocId?: string
) => Promise<Uint8Array>;
) => Promise<Uint8Array | false>;
applyDocUpdate: (
id: string,
update: Uint8Array,
@@ -164,7 +164,7 @@ export type DialogHandlers = {
dbFileLocation?: string
) => Promise<MoveDBFileResult>;
selectDBFileLocation: () => Promise<SelectDBFileLocationResult>;
setFakeDialogResult: (result: any) => Promise<FakeDialogResult>;
setFakeDialogResult: (result: any) => Promise<void>;
};
export type UIHandlers = {