Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GotDownloader.d.ts 809B

12345678910111213141516171819
  1. import * as got from 'got';
  2. import { Downloader } from './Downloader';
  3. /**
  4. * See [`got#options`](https://github.com/sindresorhus/got#options) for possible keys/values.
  5. */
  6. export declare type GotDownloaderOptions = got.GotOptions<string | null> & {
  7. /**
  8. * if defined, triggers every time `got`'s `downloadProgress` event callback is triggered.
  9. */
  10. getProgressCallback?: (progress: got.Progress) => Promise<void>;
  11. /**
  12. * if `true`, disables the console progress bar (setting the `ELECTRON_GET_NO_PROGRESS`
  13. * environment variable to a non-empty value also does this).
  14. */
  15. quiet?: boolean;
  16. };
  17. export declare class GotDownloader implements Downloader<GotDownloaderOptions> {
  18. download(url: string, targetFilePath: string, options?: GotDownloaderOptions): Promise<void>;
  19. }