[ioredis] Fix stream function return types (#35959)

* Fix ioredis stream types

* Add missing semicolon
This commit is contained in:
Wang Dàpéng
2019-06-11 03:26:15 +08:00
committed by Ron Buckton
parent 89b6a79182
commit f2b3fda2a2

View File

@@ -22,6 +22,7 @@
/// <reference types="node" />
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;