19 lines
810 B
TypeScript
19 lines
810 B
TypeScript
import { Observer, PartialObserver } from './Observer';
|
|
import { Subscription } from './Subscription';
|
|
export declare class Subscriber<T> extends Subscription implements Observer<T> {
|
|
static create<T>(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber<T>;
|
|
syncErrorValue: any;
|
|
syncErrorThrown: boolean;
|
|
syncErrorThrowable: boolean;
|
|
protected isStopped: boolean;
|
|
protected destination: PartialObserver<any>;
|
|
constructor(destinationOrNext?: PartialObserver<any> | ((value: T) => void), error?: (e?: any) => void, complete?: () => void);
|
|
next(value?: T): void;
|
|
error(err?: any): void;
|
|
complete(): void;
|
|
unsubscribe(): void;
|
|
protected _next(value: T): void;
|
|
protected _error(err: any): void;
|
|
protected _complete(): void;
|
|
}
|