index.d.ts 359 B

123456789101112
  1. import { Options } from 'got';
  2. import { ExtractOptions } from 'tar-fs';
  3. interface DownloadOptions {
  4. url: string;
  5. gotOpts?: Partial<Omit<Options, 'agent' | 'isStream'>>;
  6. extractOpts?: ExtractOptions;
  7. dir: string;
  8. }
  9. declare function download({ url, gotOpts, extractOpts, dir }: DownloadOptions): Promise<void>;
  10. export { download as default };