Skip to content

Commit f8761e6

Browse files
committed
fix(ts): Tiny schema fix
1 parent e527295 commit f8761e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ PostalMime.parse(email, options) -> Promise<ParsedEmail>
107107
- **options**: Optional configuration object:
108108
- **rfc822Attachments** (boolean, default: `false`): Treat `message/rfc822` attachments without a Content-Disposition as attachments.
109109
- **forceRfc822Attachments** (boolean, default: `false`): Treat _all_ `message/rfc822` parts as attachments.
110-
- **attachmentEncoding** (string): Determines how attachment content is decoded in the parsed email:
110+
- **attachmentEncoding** (string, default: `"arraybuffer"`): Determines how attachment content is decoded in the parsed email:
111111
- `"base64"`
112112
- `"utf8"`
113113
- `"arraybuffer"` (no decoding, returns `ArrayBuffer`)

postal-mime.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ declare function decodeWords (
5656
declare type PostalMimeOptions = {
5757
rfc822Attachments?: boolean,
5858
forceRfc822Attachments?: boolean,
59-
attachmentEncoding?: "base64" | "utf8"
59+
attachmentEncoding?: "base64" | "utf8" | "arraybuffer"
6060
}
6161

6262
declare class PostalMime {

0 commit comments

Comments
 (0)