mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +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 downloadUrl = URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
|
||||
Reference in new issue
Block a user