12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { Operator } from './Operator';
- import { Observer } from './Observer';
- import { Observable } from './Observable';
- import { Subscriber } from './Subscriber';
- import { ISubscription, Subscription, TeardownLogic } from './Subscription';
- /**
- * @class SubjectSubscriber<T>
- */
- export declare class SubjectSubscriber<T> extends Subscriber<T> {
- protected destination: Subject<T>;
- constructor(destination: Subject<T>);
- }
- /**
- * @class Subject<T>
- */
- export declare class Subject<T> extends Observable<T> implements ISubscription {
- observers: Observer<T>[];
- closed: boolean;
- isStopped: boolean;
- hasError: boolean;
- thrownError: any;
- constructor();
- static create: Function;
- lift<R>(operator: Operator<T, R>): Observable<R>;
- next(value?: T): void;
- error(err: any): void;
- complete(): void;
- unsubscribe(): void;
- protected _trySubscribe(subscriber: Subscriber<T>): TeardownLogic;
- /** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T>): Subscription;
- asObservable(): Observable<T>;
- }
- /**
- * @class AnonymousSubject<T>
- */
- export declare class AnonymousSubject<T> extends Subject<T> {
- protected destination: Observer<T>;
- constructor(destination?: Observer<T>, source?: Observable<T>);
- next(value: T): void;
- error(err: any): void;
- complete(): void;
- /** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T>): Subscription;
- }
|