Skip to content

[@types/imapflow] missing field on download method options #59239

Description

@Akstasy

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @types/[email protected] 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions