mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Specify return type as ThroughStream
This commit is contained in:
Vendored
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user