Buffer is required as it was originally there too

This commit is contained in:
arran
2021-01-22 16:48:41 +11:00
parent 5de2d8c7fb
commit e93b8032d8

View File

@ -46,7 +46,7 @@ export interface IDocumentTemplate {
}
export class ImportDotx {
public async extract(data: string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream): Promise<IDocumentTemplate> {
public async extract(data: Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream): Promise<IDocumentTemplate> {
const zipContent = await JSZip.loadAsync(data);
const documentContent = await zipContent.files["word/document.xml"].async("text");