diff --git a/types/ioredis/index.d.ts b/types/ioredis/index.d.ts index a84af2b6d0..57fce13481 100644 --- a/types/ioredis/index.d.ts +++ b/types/ioredis/index.d.ts @@ -22,6 +22,7 @@ /// import tls = require('tls'); +import { Readable } from 'stream'; interface RedisStatic { new(port?: number, host?: string, options?: IORedis.RedisOptions): IORedis.Redis; @@ -485,10 +486,10 @@ declare namespace IORedis { pipeline(commands?: string[][]): Pipeline; - scanStream(options?: ScanStreamOption): NodeJS.EventEmitter; - sscanStream(key: KeyType, options?: ScanStreamOption): NodeJS.EventEmitter; - hscanStream(key: KeyType, options?: ScanStreamOption): NodeJS.EventEmitter; - zscanStream(key: KeyType, options?: ScanStreamOption): NodeJS.EventEmitter; + scanStream(options?: ScanStreamOption): Readable; + sscanStream(key: KeyType, options?: ScanStreamOption): Readable; + hscanStream(key: KeyType, options?: ScanStreamOption): Readable; + zscanStream(key: KeyType, options?: ScanStreamOption): Readable; xack(key: KeyType, group: string, ...ids: string[]): any;