Bones/node_modules/rxjs/Subject.d.ts
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

36 lines
1.4 KiB
TypeScript

import { Operator } from './Operator';
import { Observer } from './Observer';
import { Observable } from './Observable';
import { Subscriber } from './Subscriber';
import { Subscription } from './Subscription';
export declare class Subject<T> extends Observable<T> implements Observer<T>, Subscription {
protected destination: Observer<T>;
protected source: Observable<T>;
static create: Function;
constructor(destination?: Observer<T>, source?: Observable<T>);
observers: Observer<T>[];
isUnsubscribed: boolean;
protected isStopped: boolean;
protected hasErrored: boolean;
protected errorValue: any;
protected dispatching: boolean;
protected hasCompleted: boolean;
lift<T, R>(operator: Operator<T, R>): Observable<T>;
add(subscription: Subscription | Function | void): void;
remove(subscription: Subscription): void;
unsubscribe(): void;
protected _subscribe(subscriber: Subscriber<T>): Subscription | Function | void;
protected _unsubscribe(): void;
next(value: T): void;
error(err?: any): void;
complete(): void;
asObservable(): Observable<T>;
protected _next(value: T): void;
protected _finalNext(value: T): void;
protected _error(err: any): void;
protected _finalError(err: any): void;
protected _complete(): void;
protected _finalComplete(): void;
private throwIfUnsubscribed();
}