Highland: fix for HighlandStatic generics (#9091)

_(Promise<SingleValue>) should return Highland.Stream<SingleValue>
and
_(Promise<Array) should return Highland.Stream<Array>
This commit is contained in:
Gergely Sipos
2016-04-25 23:48:47 +09:00
committed by Masahiro Wakame
parent 66a568104a
commit 1dc239e241
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -137,7 +137,9 @@ fooStream = _<Foo>(readable);
fooStream = _<Foo>(emitter);
fooStream = _(fooStreamThen);
fooStream = _(fooArrThen);
fooStream = _(fooThen);
fooArrStream = _(fooArrThen);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+1 -1
View File
@@ -67,7 +67,7 @@ interface HighlandStatic {
// moar (promise for everything?)
<R>(xs: Highland.Thenable<Highland.Stream<R>>): Highland.Stream<R>;
<R>(xs: Highland.Thenable<R[]>): Highland.Stream<R>;
<R>(xs: Highland.Thenable<R>): Highland.Stream<R>;
/**
* The end of stream marker. This is sent along the data channel of a Stream