From 0dc195e3a79ff8509aa8af1a4d3fa8fe8d307740 Mon Sep 17 00:00:00 2001 From: Wouter van Heeswijk Date: Wed, 29 Aug 2018 14:58:22 +0200 Subject: [PATCH 1/3] 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; From 8d74e8882bb6c5abfce1d26bdfed06e3ca7d3269 Mon Sep 17 00:00:00 2001 From: Wouter van Heeswijk Date: Wed, 29 Aug 2018 15:10:14 +0200 Subject: [PATCH 2/3] Increase version number for split package --- types/split/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/split/index.d.ts b/types/split/index.d.ts index a519381b0f..00684def37 100644 --- a/types/split/index.d.ts +++ b/types/split/index.d.ts @@ -1,4 +1,4 @@ -// 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 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 25150ff6b4cf9516aef1a9e7db175d4d7425dff5 Mon Sep 17 00:00:00 2001 From: Wouter van Heeswijk Date: Wed, 29 Aug 2018 15:14:04 +0200 Subject: [PATCH 3/3] Remove unused imports --- types/split/index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/split/index.d.ts b/types/split/index.d.ts index 00684def37..abe4d616ba 100644 --- a/types/split/index.d.ts +++ b/types/split/index.d.ts @@ -6,7 +6,6 @@ /// /// -import { Transform, TransformOptions } from 'stream'; import { ThroughStream } from 'through'; interface SplitOptions {