diff --git a/types/file-saver/index.d.ts b/types/file-saver/index.d.ts index 6ca9f6ad13..935fed44c2 100644 --- a/types/file-saver/index.d.ts +++ b/types/file-saver/index.d.ts @@ -12,14 +12,14 @@ declare namespace FileSaver { * @param filename - The optional name of the file to be downloaded. If omitted, the name used in the file data will be used. If none is provided "download" will be used. * @param disableAutoBOM - Optional & defaults to `false`. Set to `true` if you don't want FileSaver.js to automatically provide Unicode text encoding hints */ - export function saveAs(data: Blob, filename?: string, disableAutoBOM?: boolean): void; + function saveAs(data: Blob, filename?: string, disableAutoBOM?: boolean): void; } declare global { - const saveAs: typeof FileSaver.saveAs + const saveAs: typeof FileSaver.saveAs; interface Window { - saveAs: typeof FileSaver.saveAs + saveAs: typeof FileSaver.saveAs; } }