UNPKG

729 BTypeScriptView Raw
1export declare type ElectronPlatformName = "darwin" | "linux" | "win32" | "mas";
2export interface ElectronDownloadOptions {
3 version?: string;
4 /**
5 * The [cache location](https://github.com/electron-userland/electron-download#cache-location).
6 */
7 cache?: string | null;
8 /**
9 * The mirror.
10 */
11 mirror?: string | null;
12 /** @private */
13 customDir?: string | null;
14 /** @private */
15 customFilename?: string | null;
16 quiet?: boolean;
17 strictSSL?: boolean;
18 isVerifyChecksum?: boolean;
19 /** @private */
20 force?: boolean;
21 platform?: ElectronPlatformName;
22 arch?: string;
23}
24export declare function downloadElectron(options: ElectronDownloadOptions): Promise<string>;