mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 21:40:21 +00:00
fix(rsocket-flowable): makes Single.error() generic (#42584)
* fix(rsocket-flowable): makes Single.error() generic * use never instead * . * .
This commit is contained in:
Vendored
+1
-1
@@ -46,7 +46,7 @@ export interface IFutureSubject<T> {
|
||||
*/
|
||||
export default class Single<T> {
|
||||
static of<U>(value: U): Single<U>;
|
||||
static error(error: Error): Single<{}>;
|
||||
static error(error: Error): Single<never>;
|
||||
constructor(source: Source<T>);
|
||||
subscribe(partialSubscriber?: Partial<IFutureSubscriber<T>>): void;
|
||||
flatMap<R>(fn: (data: T) => Single<R>): Single<R>;
|
||||
|
||||
Reference in New Issue
Block a user