Skip to content

Commit 2c6a472

Browse files
authored
Merge pull request #121 from ghiscoding/ghiscoding-patch-1
chore: cast data as BlobPart
2 parents ff6eb69 + e35050a commit 2c6a472

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/excel-builder-vanilla/src/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function createExcelFile<T extends 'Blob' | 'Uint8Array' = 'Blob'>(
6969
if (mimeType === undefined) {
7070
mimeType = format === 'xls' ? 'application/vnd.ms-excel' : 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
7171
}
72-
resolve(new Blob([data as unknown as ArrayBuffer], { type: mimeType }) as InferOutputByType<T>);
72+
resolve(new Blob([data as BlobPart], { type: mimeType }) as InferOutputByType<T>);
7373
}
7474
});
7575
});

0 commit comments

Comments
 (0)