Fix download function return type

This commit is contained in:
Josué
2018-12-10 11:28:23 -06:00
parent f89573a672
commit 381e0a541c
+2 -1
View File
@@ -1,10 +1,11 @@
// Type definitions for downloadjs 1.4
// Project: http://danml.com/download.html
// Definitions by: cwmoo740 <https://github.com/cwmoo740>
// josuedevmark <https://github.com/josuedevmark>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
declare namespace download {
}
declare function download(data: string | File | Blob, filename?: string, mimeType?: string): void;
declare function download(data: string | File | Blob, filename?: string, mimeType?: string): XMLHttpRequest | boolean;
export = download;