mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
imap-simple: sync description format of search()
The description of the `search()` method uses the phrase "in the previously opened mailbox", which is inconsistent with what's used in `onmail()`, `append()` and `moveMessage()`, i.e. "in the currently open mailbox". This change rewords the first passage to match the other ones.
This commit is contained in:
parent
9e673d252d
commit
e529abd8fa
2
types/imap-simple/index.d.ts
vendored
2
types/imap-simple/index.d.ts
vendored
@ -55,7 +55,7 @@ export class ImapSimple extends NodeJS.EventEmitter {
|
||||
getBoxes(callback: (err: Error, boxes: Imap.MailBoxes) => void): void;
|
||||
getBoxes(): Promise<Imap.MailBoxes>;
|
||||
|
||||
/** Search for and retrieve mail in the previously opened mailbox. */
|
||||
/** Search for and retrieve mail in the currently open mailbox. */
|
||||
search(searchCriteria: any[], fetchOptions: Imap.FetchOptions, callback: (err: Error, messages: Message[]) => void): void;
|
||||
search(searchCriteria: any[], fetchOptions: Imap.FetchOptions): Promise<Message[]>;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user