download_manager.d.ts 716 B

12345678910111213141516
  1. export class DownloadManager {
  2. _openBlobUrls: WeakMap<object, any>;
  3. downloadUrl(url: any, filename: any): void;
  4. downloadData(data: any, filename: any, contentType: any): void;
  5. /**
  6. * @returns {boolean} Indicating if the data was opened.
  7. */
  8. openOrDownloadData(element: any, data: any, filename: any): boolean;
  9. /**
  10. * @param sourceEventType {string} Used to signal what triggered the download.
  11. * The version of PDF.js integrated with Firefox uses this to to determine
  12. * which dialog to show. "save" triggers "save as" and "download" triggers
  13. * the "open with" dialog.
  14. */
  15. download(blob: any, url: any, filename: any, sourceEventType?: string): void;
  16. }