From e93b8032d8b5f8def31e2153dc0e6d125084a70c Mon Sep 17 00:00:00 2001 From: arran Date: Fri, 22 Jan 2021 16:48:41 +1100 Subject: [PATCH] Buffer is required as it was originally there too --- src/import-dotx/import-dotx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import-dotx/import-dotx.ts b/src/import-dotx/import-dotx.ts index 6c509c6383..80cd0666dd 100644 --- a/src/import-dotx/import-dotx.ts +++ b/src/import-dotx/import-dotx.ts @@ -46,7 +46,7 @@ export interface IDocumentTemplate { } export class ImportDotx { - public async extract(data: string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream): Promise { + public async extract(data: Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream): Promise { const zipContent = await JSZip.loadAsync(data); const documentContent = await zipContent.files["word/document.xml"].async("text");