Specify return type as ThroughStream

This commit is contained in:
Wouter van Heeswijk
2018-08-29 14:58:22 +02:00
parent 3be76f6b28
commit 0dc195e3a7
+4 -2
View File
@@ -4,13 +4,15 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
/// <reference types="through" />
import { Transform, TransformOptions } from 'stream';
import { ThroughStream } from 'through';
interface SplitOptions {
maxLength: number
}
declare function split(matcher?: any, mapper?: any, options?: SplitOptions): any;
declare function split(matcher?: any, mapper?: any, options?: SplitOptions): ThroughStream;
export = split;