mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #28496 from woutervh-/split-more-detailed-types
[@types/split] Specify return type as ThroughStream
This commit is contained in:
Vendored
+4
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user