From 0dc195e3a79ff8509aa8af1a4d3fa8fe8d307740 Mon Sep 17 00:00:00 2001 From: Wouter van Heeswijk Date: Wed, 29 Aug 2018 14:58:22 +0200 Subject: [PATCH] Specify return type as ThroughStream --- types/split/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/split/index.d.ts b/types/split/index.d.ts index f4cd33dd5e..a519381b0f 100644 --- a/types/split/index.d.ts +++ b/types/split/index.d.ts @@ -4,13 +4,15 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +/// - +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;