rsocket - adds Single.never() (#43603)

This commit is contained in:
David Hearnden
2020-04-03 17:01:22 -07:00
committed by GitHub
parent 378e67bfe3
commit e90ac91923
+1
View File
@@ -47,6 +47,7 @@ export interface IFutureSubject<T> {
export default class Single<T> {
static of<U>(value: U): Single<U>;
static error(error: Error): Single<never>;
static never(): Single<never>;
constructor(source: Source<T>);
subscribe(partialSubscriber?: Partial<IFutureSubscriber<T>>): void;
flatMap<R>(fn: (data: T) => Single<R>): Single<R>;