From b19efc4fbe4be11ab006291a96ca1f0a4310421d Mon Sep 17 00:00:00 2001 From: Steve Fenton Date: Sun, 23 Nov 2014 22:11:43 +0000 Subject: [PATCH] Update imap.d.ts Explicit (but temporary) any types. --- node-imap/imap.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node-imap/imap.d.ts b/node-imap/imap.d.ts index 77ef53f5f1..2b387136fe 100644 --- a/node-imap/imap.d.ts +++ b/node-imap/imap.d.ts @@ -56,11 +56,11 @@ declare module "imap" { interface ImapMessage { // TODO: typeof attributes - once(event: 'attributes', callback: (attributes) => void): void; + once(event: 'attributes', callback: (attributes: any) => void): void; once(event: string, callback: Function): void; // TODO: typeof info - on(event: 'body', callback: (stream: ImapBodyStream, info) => void): void; + on(event: 'body', callback: (stream: ImapBodyStream, info: any) => void): void; on(event: string, callback: Function): void; } @@ -71,14 +71,14 @@ declare module "imap" { //TODO: // param a - openBox(name: string, a: boolean, callback: (err: Error, box: ImapBox) => void); + openBox(name: string, a: boolean, callback: (err: Error, box: ImapBox) => void) : void; //TODO: // param a // param b once(event: 'end', callback: () => void): void; once(event: 'error', callback: (error: Error) => void): void; - once(a: string, callback: Function); + once(a: string, callback: Function) : void; end(): void;