frontend/.pnpm-store/v3/files/0d/4bc634cb3d24cedc69d24d386e9203a80dc79353ce788b74fb646af213a92e6b6c43863b46b1fbe64dabcc9c8e736c1225e6f5077ba1febded371c118fffc9

42 lines
1.9 KiB
Plaintext

import { Subject } from '../Subject';
import { Observable } from '../Observable';
import { Subscription } from '../Subscription';
/**
* @class ConnectableObservable<T>
* @deprecated Will be removed in v8. Use {@link connectable} to create a connectable observable.
* If you are using the `refCount` method of `ConnectableObservable`, use the {@link share} operator
* instead.
* Details: https://rxjs.dev/deprecations/multicasting
*/
export declare class ConnectableObservable<T> extends Observable<T> {
source: Observable<T>;
protected subjectFactory: () => Subject<T>;
protected _subject: Subject<T> | null;
protected _refCount: number;
protected _connection: Subscription | null;
/**
* @param source The source observable
* @param subjectFactory The factory that creates the subject used internally.
* @deprecated Will be removed in v8. Use {@link connectable} to create a connectable observable.
* `new ConnectableObservable(source, factory)` is equivalent to
* `connectable(source, { connector: factory })`.
* When the `refCount()` method is needed, the {@link share} operator should be used instead:
* `new ConnectableObservable(source, factory).refCount()` is equivalent to
* `source.pipe(share({ connector: factory }))`.
* Details: https://rxjs.dev/deprecations/multicasting
*/
constructor(source: Observable<T>, subjectFactory: () => Subject<T>);
protected getSubject(): Subject<T>;
protected _teardown(): void;
/**
* @deprecated {@link ConnectableObservable} will be removed in v8. Use {@link connectable} instead.
* Details: https://rxjs.dev/deprecations/multicasting
*/
connect(): Subscription;
/**
* @deprecated {@link ConnectableObservable} will be removed in v8. Use the {@link share} operator instead.
* Details: https://rxjs.dev/deprecations/multicasting
*/
refCount(): Observable<T>;
}
//# sourceMappingURL=ConnectableObservable.d.ts.map