Merge pull request #28496 from woutervh-/split-more-detailed-types

[@types/split] Specify return type as ThroughStream
This commit is contained in:
Armando Aguirre
2018-08-29 11:27:52 -07:00
committed by GitHub
+4 -3
View File
@@ -1,16 +1,17 @@
// Type definitions for split v0.3.3
// Type definitions for split v1.0.1
// Project: https://github.com/dominictarr/split
// Definitions by: Marcin Porębski <https://github.com/marcinporebski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
/// <reference types="through" />
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;