-
Notifications
You must be signed in to change notification settings - Fork 30.6k
[@types/imapflow] missing field on download method options #59239
Copy link
Copy link
Closed
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch @types/imapflow@1.0.6 for the project I'm working on.
chunksize option is missing based on documentation:
https://imapflow.com/module-imapflow-ImapFlow.html#connect-examples
Here is the diff that solved my problem:
diff --git a/node_modules/@types/imapflow/index.d.ts b/node_modules/@types/imapflow/index.d.ts
index d4c0efe..a0ed375 100755
--- a/node_modules/@types/imapflow/index.d.ts
+++ b/node_modules/@types/imapflow/index.d.ts
@@ -36,7 +36,7 @@ export class ImapFlow extends EventEmitter {
download(
range: SequenceString,
part?: string,
- options?: { uid?: boolean; maxBytes?: number },
+ options?: { uid?: boolean; maxBytes?: number, chunkSize?: number },
): Promise<DownloadObject>;
getMailboxLock(path: string, options?: null | { readonly?: boolean }): Promise<MailboxLockObject>;This issue body was partially generated by patch-package.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels