UNPKG

544 BTypeScriptView Raw
1export interface AppAdapter {
2 readonly version: string;
3 readonly name: string;
4 readonly isPackaged: boolean;
5 /**
6 * Path to update metadata file.
7 */
8 readonly appUpdateConfigPath: string;
9 /**
10 * Path to user data directory.
11 */
12 readonly userDataPath: string;
13 /**
14 * Path to cache directory.
15 */
16 readonly baseCachePath: string;
17 whenReady(): Promise<void>;
18 quit(): void;
19 onQuit(handler: (exitCode: number) => void): void;
20}
21export declare function getAppCacheDir(): string;