Skip to content

Commit cdfae80

Browse files
committed
Fix buffer types
1 parent 4d88585 commit cdfae80

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/TemplateProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export enum ExportFormat {
9292
Png,
9393
}
9494

95-
const downloadPdf = (data: ArrayBuffer, fileName: string) => {
95+
const downloadPdf = (data: ArrayBuffer | Uint8Array<ArrayBuffer>, fileName: string) => {
9696
const blob = new Blob([data], {
9797
type: 'application/pdf',
9898
});

src/templating.worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export type TemplatingWorkerResponse =
5353
}
5454
| {
5555
kind: TemplatingWorkerResponseKind.Preview | TemplatingWorkerResponseKind.Compile;
56-
data: ArrayBuffer;
56+
data: Uint8Array<ArrayBuffer>;
5757
templateId: string;
5858
}
5959
| {

0 commit comments

Comments
 (0)