From 991abfcd75281e38d02138bb9cabf60c95aa3d7a Mon Sep 17 00:00:00 2001 From: Adi Bardan Date: Sun, 17 Sep 2017 11:20:10 +0200 Subject: [PATCH] twitter-stream-channels - fix parameters for StreamChannels: stop() --- types/twitter-stream-channels/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/twitter-stream-channels/index.d.ts b/types/twitter-stream-channels/index.d.ts index 486b02edaf..20708c75b1 100644 --- a/types/twitter-stream-channels/index.d.ts +++ b/types/twitter-stream-channels/index.d.ts @@ -48,12 +48,12 @@ declare module 'twitter-stream-channels' { /** * Closes the opened stream with Twitter * @method stop - * @param {StreamChannelsOptions} [options] - * @param {StreamChannelsOptions} [options.removeAllListeners=false] If true removes all the listeners set on the stream + * @param {Object} [options] + * @param {Object} [options.removeAllListeners=false] If true removes all the listeners set on the stream * @returns {StreamChannels} * @see https://github.com/topheman/twitter-stream-channels/blob/master/lib/StreamChannels.js#L120 */ - stop(options?: StreamChannels.StreamChannelsOptions): StreamChannels; + stop(options?: {removeAllListeners: boolean}): StreamChannels; /**