Files
actual-actualbudget-1/packages/loot-core/typings/window.ts
Michael Clark 7a886810bc :electron: Hide the Electron menu (#5847)
* add retries to electron server import

* release notes

* get rid of this menu. If its an app functionality it should be available within the app

* hide the menu - update the ui

* fix function call

* Update VRT

* release notes

* spelling mistake

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-10-06 17:13:47 +01:00

55 lines
1.4 KiB
TypeScript

// @ts-strict-ignore
export {};
type FileDialogOptions = {
properties?: Array<'openFile' | 'openDirectory'>;
filters?: {
name: string;
extensions: string[];
}[];
};
type Actual = {
IS_DEV: boolean;
ACTUAL_VERSION: string;
openURLInBrowser: (url: string) => void;
saveFile: (
contents: string | Buffer,
filename: string,
dialogTitle?: string,
) => Promise<void>;
openFileDialog: (options: FileDialogOptions) => Promise<string[]>;
relaunch: () => void;
reload: (() => Promise<void>) | undefined;
restartElectronServer: () => void;
moveBudgetDirectory: (
currentBudgetDirectory: string,
newDirectory: string,
) => Promise<void>;
applyAppUpdate: () => Promise<void>;
ipcConnect: (callback: (client) => void) => void;
getServerSocket: () => Promise<Worker | null>;
setTheme: (theme: string) => void;
logToTerminal: (...args: unknown[]) => void;
onEventFromMain: (
event: string,
listener: (...args: unknown[]) => void,
) => void;
isUpdateReadyForDownload: () => boolean;
waitForUpdateReadyForDownload: () => Promise<void>;
startSyncServer: () => Promise<void>;
stopSyncServer: () => Promise<void>;
isSyncServerRunning: () => Promise<boolean>;
startOAuthServer: () => Promise<string>;
};
declare global {
interface Window {
__navigate?: import('react-router').NavigateFunction;
}
var Actual: Actual;
var IS_TESTING: boolean;
}