twitter-stream-channels - fix parameters for StreamChannels: stop()

This commit is contained in:
Adi Bardan
2017-09-17 11:20:10 +02:00
parent 42ef44140c
commit 991abfcd75
+3 -3
View File
@@ -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;
/**