From 703e03aba33f234712206769f57717ba7d92d23d Mon Sep 17 00:00:00 2001 From: LinuxWizard42 Date: Wed, 12 Oct 2022 22:54:37 +0300 Subject: Added export_allowed file to make repository visible in cgit --- .../@electron/get/dist/esm/GotDownloader.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 node_modules/@electron/get/dist/esm/GotDownloader.d.ts (limited to 'node_modules/@electron/get/dist/esm/GotDownloader.d.ts') diff --git a/node_modules/@electron/get/dist/esm/GotDownloader.d.ts b/node_modules/@electron/get/dist/esm/GotDownloader.d.ts new file mode 100644 index 0000000..6494756 --- /dev/null +++ b/node_modules/@electron/get/dist/esm/GotDownloader.d.ts @@ -0,0 +1,21 @@ +import { Progress as GotProgress, Options as GotOptions } from 'got'; +import { Downloader } from './Downloader'; +/** + * See [`got#options`](https://github.com/sindresorhus/got#options) for possible keys/values. + */ +export declare type GotDownloaderOptions = (GotOptions & { + isStream?: true; +}) & { + /** + * if defined, triggers every time `got`'s `downloadProgress` event callback is triggered. + */ + getProgressCallback?: (progress: GotProgress) => Promise; + /** + * if `true`, disables the console progress bar (setting the `ELECTRON_GET_NO_PROGRESS` + * environment variable to a non-empty value also does this). + */ + quiet?: boolean; +}; +export declare class GotDownloader implements Downloader { + download(url: string, targetFilePath: string, options?: GotDownloaderOptions): Promise; +} -- cgit v1.2.3-86-g962b