feat: basic app menu (#1207)

This commit is contained in:
lin onetwo
2023-03-01 12:37:53 +08:00
committed by GitHub
parent c096fa156b
commit b575094f4b
7 changed files with 154 additions and 9 deletions

View File

@@ -1,9 +1,3 @@
declare global {
interface Window {
__TAURI_ISOLATION_HOOK_: (payload: any) => any;
}
}
// tauri preload script can't have `export {}`
// @ts-ignore 'index.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.ts(1208)
window.__TAURI_ISOLATION_HOOK__ = payload => {
@@ -20,5 +14,3 @@ function setEnvironmentVariables() {
}
setEnvironmentVariables();
export {};

View File

@@ -4,6 +4,7 @@ declare global {
interface Window {
CLIENT_APP?: boolean;
__TAURI_ISOLATION_HOOK_: (payload: any) => any;
}
}