aboutsummaryrefslogtreecommitdiff
path: root/lib/index.d.ts
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-05-28 19:16:44 +0100
committerMichael Williamson <mike@zwobble.org>2023-05-28 19:16:44 +0100
commite12c1e59acd5fc66ec274395f3c0f88713daf5b4 (patch)
treeeb034934fee35f0885fccc65d64a6580ed45f2e3 /lib/index.d.ts
parent84fffea3212510a7b0b1d33b8dad4a9660675c8b (diff)
Add toArrayBuffer when embedding a style map
Diffstat (limited to 'lib/index.d.ts')
-rw-r--r--lib/index.d.ts5
1 files changed, 4 insertions, 1 deletions
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<Result>;
extractRawText: (input: Input) => Promise<Result>;
- embedStyleMap: (input: Input, styleMap: string) => Promise<{toBuffer: () => Buffer}>;
+ embedStyleMap: (input: Input, styleMap: string) => Promise<{
+ toArrayBuffer: () => ArrayBuffer,
+ toBuffer: () => Buffer,
+ }>;
images: Images;
}