From 381e0a541ca3b21bc33d96e3d94bf4ee400fe587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9?= Date: Mon, 10 Dec 2018 11:28:23 -0600 Subject: [PATCH] Fix download function return type --- types/downloadjs/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/downloadjs/index.d.ts b/types/downloadjs/index.d.ts index 0379de8395..7f9c7cae2d 100644 --- a/types/downloadjs/index.d.ts +++ b/types/downloadjs/index.d.ts @@ -1,10 +1,11 @@ // Type definitions for downloadjs 1.4 // Project: http://danml.com/download.html // Definitions by: cwmoo740 +// 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;