mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[ioredis] Fix stream function return types (#35959)
* Fix ioredis stream types * Add missing semicolon
This commit is contained in:
9
types/ioredis/index.d.ts
vendored
9
types/ioredis/index.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user