From 1dc239e241cf7f3ceba0c83ded52c11f9d792b32 Mon Sep 17 00:00:00 2001 From: Gergely Sipos Date: Mon, 25 Apr 2016 16:48:47 +0200 Subject: [PATCH] Highland: fix for HighlandStatic generics (#9091) _(Promise) should return Highland.Stream and _(Promise --- highland/highland-tests.ts | 4 +++- highland/highland.d.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/highland/highland-tests.ts b/highland/highland-tests.ts index c7e213aa17..7a67670edd 100644 --- a/highland/highland-tests.ts +++ b/highland/highland-tests.ts @@ -137,7 +137,9 @@ fooStream = _(readable); fooStream = _(emitter); fooStream = _(fooStreamThen); -fooStream = _(fooArrThen); +fooStream = _(fooThen); + +fooArrStream = _(fooArrThen); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/highland/highland.d.ts b/highland/highland.d.ts index 8becaf2762..f3617ccd14 100644 --- a/highland/highland.d.ts +++ b/highland/highland.d.ts @@ -67,7 +67,7 @@ interface HighlandStatic { // moar (promise for everything?) (xs: Highland.Thenable>): Highland.Stream; - (xs: Highland.Thenable): Highland.Stream; + (xs: Highland.Thenable): Highland.Stream; /** * The end of stream marker. This is sent along the data channel of a Stream