fix(rsocket-flowable): makes Flowable.error() and Flowable.never() return Flowable<never> (#43318)

This commit is contained in:
David Hearnden 2020-04-01 08:44:15 +11:00 committed by GitHub
parent c1c7683e9b
commit 0506ca2fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@ export type Source<T> = (subscriber: ISubscriber<T>) => void;
*/
export default class Flowable<T> implements IPublisher<T> {
static just<U>(...values: U[]): Flowable<U>;
static error(error: Error): Flowable<{}>;
static never(): Flowable<{}>;
static error(error: Error): Flowable<never>;
static never(): Flowable<never>;
constructor(source: Source<T>, max?: number);
subscribe(subscriberOrCallback?: Partial<ISubscriber<T>> | ((a: T) => void)): void;
lift<R>(onSubscribeLift: (subscriber: ISubscriber<R>) => ISubscriber<T>): Flowable<R>;