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

This commit is contained in:
David Hearnden 2020-04-04 11:01:22 +11:00 committed by GitHub
parent 378e67bfe3
commit e90ac91923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>;