feat(electron): add isMaximized flag to html (#6199)

to make some special ui rules for desktop
This commit is contained in:
pengx17
2024-03-20 13:20:19 +00:00
parent 65ab6c89bf
commit a8a1074a8a
4 changed files with 21 additions and 2 deletions

View File

@@ -21,7 +21,11 @@ type ClientHandler = {
arg0: any,
...rest: infer A
) => any
? (...args: A) => Promise<ReturnType<MainHandlers[namespace][method]>>
? (
...args: A
) => ReturnType<MainHandlers[namespace][method]> extends Promise<any>
? ReturnType<MainHandlers[namespace][method]>
: Promise<ReturnType<MainHandlers[namespace][method]>>
: never;
};
} & HelperHandlers;