diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-10-24 17:43:37 +0200 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-10-24 17:43:37 +0200 |
commit | ae187b6d75c8079da0be1dc288613bad8466fe61 (patch) | |
tree | 5ea0d34185a2270f29ffaa65e1f5258028d7d5d0 /desktop/node_modules/@electron/get/dist/cjs/GotDownloader.d.ts | |
download | mist-ae187b6d75c8079da0be1dc288613bad8466fe61.tar.gz mist-ae187b6d75c8079da0be1dc288613bad8466fe61.tar.bz2 mist-ae187b6d75c8079da0be1dc288613bad8466fe61.zip |
Initial commit
Diffstat (limited to 'desktop/node_modules/@electron/get/dist/cjs/GotDownloader.d.ts')
-rw-r--r-- | desktop/node_modules/@electron/get/dist/cjs/GotDownloader.d.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/desktop/node_modules/@electron/get/dist/cjs/GotDownloader.d.ts b/desktop/node_modules/@electron/get/dist/cjs/GotDownloader.d.ts new file mode 100644 index 0000000..6494756 --- /dev/null +++ b/desktop/node_modules/@electron/get/dist/cjs/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<void>; + /** + * 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<GotDownloaderOptions> { + download(url: string, targetFilePath: string, options?: GotDownloaderOptions): Promise<void>; +} |