Files
actual-actualbudget-1/packages/loot-core/typings/window.ts
raf-vale c71e752cbe Add link detection in transaction notes (#6306)
* Add link detection in transaction notes

* update release notes

* Fix trailing punctuation from URLs and add space between segments

* rename openFileInExplorer to openInFileManager
2025-12-06 19:29:50 +00:00

58 lines
1.5 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;
openInFileManager: (filepath: 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;
var currentMonth: string | null;
}