summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-05-30 10:39:28 +0100
committerMichael Williamson <mike@zwobble.org>2023-05-30 10:39:28 +0100
commitb02278fc5677b0eb749534ed90ff3a63bd159fcc (patch)
treea0b26cff812d6b56649ed604581fd599bc8b4d8f
parentaabc9cf823b6799ae75ca0f0c4b0a6d7c1554cf9 (diff)
Add additional read methods to Image in TypeScript declarations
-rw-r--r--lib/index.d.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/index.d.ts b/lib/index.d.ts
index 705606f..465c8f9 100644
--- a/lib/index.d.ts
+++ b/lib/index.d.ts
@@ -42,7 +42,9 @@ interface ImageConverter {
interface Image {
contentType: string;
+ readAsArrayBuffer: () => Promise<ArrayBuffer>;
readAsBase64String: () => Promise<string>;
+ readAsBuffer: () => Promise<Buffer>;
read: ImageRead;
}