From e12c1e59acd5fc66ec274395f3c0f88713daf5b4 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 May 2023 19:16:44 +0100 Subject: Add toArrayBuffer when embedding a style map --- lib/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/index.d.ts') diff --git a/lib/index.d.ts b/lib/index.d.ts index c73eeb5..705606f 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1,7 +1,10 @@ interface Mammoth { convertToHtml: (input: Input, options?: Options) => Promise; extractRawText: (input: Input) => Promise; - embedStyleMap: (input: Input, styleMap: string) => Promise<{toBuffer: () => Buffer}>; + embedStyleMap: (input: Input, styleMap: string) => Promise<{ + toArrayBuffer: () => ArrayBuffer, + toBuffer: () => Buffer, + }>; images: Images; } -- cgit v1.2.3