fix: typecheck

This commit is contained in:
ShareVB committed 2025-01-12 21:50:20 +01:00
1 parent 14e3d8e8ab
commit ce661be5ed
1 file changed
+1 -1
+1 -1
View File
@@ -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');