diff options
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/internal/Subject.d.ts')
-rw-r--r-- | tools/node_modules/eslint/node_modules/rxjs/internal/Subject.d.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/internal/Subject.d.ts b/tools/node_modules/eslint/node_modules/rxjs/internal/Subject.d.ts index 2ff148a31f..ec4db2c808 100644 --- a/tools/node_modules/eslint/node_modules/rxjs/internal/Subject.d.ts +++ b/tools/node_modules/eslint/node_modules/rxjs/internal/Subject.d.ts @@ -11,6 +11,12 @@ export declare class SubjectSubscriber<T> extends Subscriber<T> { constructor(destination: Subject<T>); } /** + * A Subject is a special type of Observable that allows values to be + * multicasted to many Observables. Subjects are like EventEmitters. + * + * Every Subject is an Observable and an Observer. You can subscribe to a + * Subject, and you can call next to feed values as well as error and complete. + * * @class Subject<T> */ export declare class Subject<T> extends Observable<T> implements SubscriptionLike { @@ -31,6 +37,12 @@ export declare class Subject<T> extends Observable<T> implements SubscriptionLik _trySubscribe(subscriber: Subscriber<T>): TeardownLogic; /** @deprecated This is an internal implementation detail, do not use. */ _subscribe(subscriber: Subscriber<T>): Subscription; + /** + * Creates a new Observable with this Subject as the source. You can do this + * to create customize Observer-side logic of the Subject and conceal it from + * code that uses the Observable. + * @return {Observable} Observable that the Subject casts to + */ asObservable(): Observable<T>; } /** |