mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 22:02:38 +03:00
fix: typecheck
This commit is contained in:
1 parent
14e3d8e8ab
commit
ce661be5ed
1 file changed
+1
-1
@@ -27,7 +27,7 @@ const parsedEmail = computedAsync(async () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function downloadFile(data: ArrayBuffer, fileName: string, fileType: string) {
|
function downloadFile(data: ArrayBuffer | string, fileName: string, fileType: string) {
|
||||||
const blob = new Blob([data], { type: fileType || 'application/octet-stream' });
|
const blob = new Blob([data], { type: fileType || 'application/octet-stream' });
|
||||||
const downloadUrl = URL.createObjectURL(blob);
|
const downloadUrl = URL.createObjectURL(blob);
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
|
|||||||
Reference in new issue
Block a user