@types/event-stream
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -8,3 +8,3 @@ // Type definitions for event-stream v4.0 | ||
import * as stream from 'stream'; | ||
import * as stream from "stream"; | ||
@@ -25,10 +25,10 @@ export interface MapStream extends stream.Stream { | ||
*/ | ||
export declare function pipeline(...streams: MapStream[]): MapStream; | ||
export declare function pipeline(...streams: MapStream[]): MapStream; | ||
/** | ||
* Create a through stream from an asynchronous function | ||
* | ||
* | ||
* @param asyncFunction | ||
*/ | ||
export declare function map(asyncFunction: Function): MapStream; | ||
export declare function map(asyncFunction: Function): MapStream; | ||
@@ -39,3 +39,3 @@ /** | ||
*/ | ||
export declare function mapSync(syncFunction: Function): MapStream; | ||
export declare function mapSync(syncFunction: Function): MapStream; | ||
@@ -46,17 +46,17 @@ /** | ||
*/ | ||
export declare function filterSync(syncFunction: (value: any) => boolean): MapStream; | ||
export declare function filterSync(syncFunction: (value: any) => boolean): MapStream; | ||
/** | ||
* Break up a stream and reassemble it so that each line is a chunk. matcher may be a String, or a RegExp | ||
* | ||
* | ||
* @param matcher | ||
*/ | ||
export declare function split(matcher?: string | RegExp): MapStream; | ||
export declare function split(matcher?: string | RegExp): MapStream; | ||
/** | ||
* Create a through stream that emits separator between each chunk, just like Array#join | ||
* | ||
* | ||
* @param separator | ||
*/ | ||
export declare function join(separator: string): MapStream; | ||
export declare function join(separator: string): MapStream; | ||
@@ -67,6 +67,6 @@ /** | ||
* Counts how many streams were passed to it and emits end only when all streams emitted end. | ||
* | ||
* | ||
* @param stream | ||
*/ | ||
export declare function concat(...stream: MapStream[]): MapStream; | ||
export declare function concat(...stream: MapStream[]): MapStream; | ||
@@ -77,6 +77,6 @@ /** | ||
* Counts how many streams were passed to it and emits end only when all streams emitted end. | ||
* | ||
* | ||
* @param stream | ||
*/ | ||
export declare function concat(streamArray: MapStream[]): MapStream; | ||
export declare function concat(streamArray: MapStream[]): MapStream; | ||
@@ -87,3 +87,3 @@ /** | ||
* Counts how many streams were passed to it and emits end only when all streams emitted end. | ||
* | ||
* | ||
* @param stream | ||
@@ -97,3 +97,3 @@ */ | ||
* Counts how many streams were passed to it and emits end only when all streams emitted end. | ||
* | ||
* | ||
* @param stream | ||
@@ -124,3 +124,3 @@ */ | ||
* create a readable stream (that respects pause) from an async function. | ||
* | ||
* | ||
* @param asyncFunction | ||
@@ -132,3 +132,3 @@ */ | ||
* Create a readable stream from an Array. | ||
* | ||
* | ||
* @param array | ||
@@ -140,3 +140,3 @@ */ | ||
* create a writeable stream from a callback | ||
* | ||
* | ||
* @param callback | ||
@@ -153,3 +153,3 @@ */ | ||
* Takes a writable stream and a readable stream and makes them appear as a readable writable stream. | ||
* | ||
* | ||
* @param writeStream | ||
@@ -162,3 +162,3 @@ * @param readStream | ||
* Create a through stream from a child process | ||
* | ||
* | ||
* @param child_process | ||
@@ -171,5 +171,5 @@ */ | ||
* Takes an optional callback, which will be passed the complete string/buffer when it receives the 'end' event. | ||
* | ||
* | ||
* @param callback | ||
*/ | ||
export declare function wait(callback: Function): MapStream; |
{ | ||
"name": "@types/event-stream", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "TypeScript definitions for event-stream", | ||
@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/event-stream", | ||
}, | ||
"typesPublisherContentHash": "1e7b22ede520affde14434c7beefd30dd60f8393717774627226ac0648a57bc2", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "89d06886bac027357ed421fd22ab52c40b9fba20dbdf5cac5f948e6b3392e348", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 10 May 2023 21:03:25 GMT | ||
* Last updated: Sat, 23 Sep 2023 17:07:22 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7673