diff --git a/node-imap/imap-tests.ts b/node-imap/imap-tests.ts index a12f626a11..61f4b2e0c1 100644 --- a/node-imap/imap-tests.ts +++ b/node-imap/imap-tests.ts @@ -94,11 +94,11 @@ imap.openBox('INBOX', true, function (err, box) { }); }); -var fs = require('fs'), fileStream; +var fs = require('fs'), fileStream : any; imap.openBox('INBOX', true,function (err, box) { if (err) throw err; - imap.search(['UNSEEN', ['SINCE', 'May 20, 2010']], function (err, results) { + imap.search(['UNSEEN', ['SINCE', 'May 20, 2010']], function (err : Error, results: any) { if (err) throw err; var f = imap.fetch(results, { bodies: '' }); f.on('message', function (msg, seqno) {