mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
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:
committed by
Masahiro Wakame
parent
66a568104a
commit
1dc239e241
@@ -137,7 +137,9 @@ fooStream = _<Foo>(readable);
|
||||
fooStream = _<Foo>(emitter);
|
||||
|
||||
fooStream = _(fooStreamThen);
|
||||
fooStream = _(fooArrThen);
|
||||
fooStream = _(fooThen);
|
||||
|
||||
fooArrStream = _(fooArrThen);
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user