Skip to content

Commit

Permalink
fix(ts): Tiny schema fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Jan 5, 2025
1 parent e527295 commit f8761e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ PostalMime.parse(email, options) -> Promise<ParsedEmail>
- **options**: Optional configuration object:
- **rfc822Attachments** (boolean, default: `false`): Treat `message/rfc822` attachments without a Content-Disposition as attachments.
- **forceRfc822Attachments** (boolean, default: `false`): Treat _all_ `message/rfc822` parts as attachments.
- **attachmentEncoding** (string): Determines how attachment content is decoded in the parsed email:
- **attachmentEncoding** (string, default: `"arraybuffer"`): Determines how attachment content is decoded in the parsed email:
- `"base64"`
- `"utf8"`
- `"arraybuffer"` (no decoding, returns `ArrayBuffer`)
Expand Down
2 changes: 1 addition & 1 deletion postal-mime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ declare function decodeWords (
declare type PostalMimeOptions = {
rfc822Attachments?: boolean,
forceRfc822Attachments?: boolean,
attachmentEncoding?: "base64" | "utf8"
attachmentEncoding?: "base64" | "utf8" | "arraybuffer"
}

declare class PostalMime {
Expand Down

0 comments on commit f8761e6

Please sign in to comment.