feat: add open app route (#3899)

This commit is contained in:
Peng Xiao
2023-08-30 06:40:25 +08:00
committed by GitHub
parent 71b195d9a9
commit 800f3c3cb6
29 changed files with 486 additions and 104 deletions
+4 -2
View File
@@ -173,7 +173,6 @@ export type UIHandlers = {
handleMinimizeApp: () => Promise<any>;
handleMaximizeApp: () => Promise<any>;
handleCloseApp: () => Promise<any>;
handleFinishLogin: () => Promise<void>;
getGoogleOauthCode: () => Promise<any>;
};
@@ -267,7 +266,10 @@ export interface WorkspaceEvents {
}
export interface UIEvents {
onFinishLogin: (fn: () => void) => () => void;
onStartLogin: (fn: (options: { email: string }) => void) => () => void;
onFinishLogin: (
fn: (result: { success: boolean; email: string }) => void
) => () => void;
}
export interface EventMap {