multicast.d.ts 1.1 KB

123456789101112131415
  1. import { Subject } from '../Subject';
  2. import { Operator } from '../Operator';
  3. import { Subscriber } from '../Subscriber';
  4. import { Observable } from '../Observable';
  5. import { ConnectableObservable } from '../observable/ConnectableObservable';
  6. import { FactoryOrValue, MonoTypeOperatorFunction, OperatorFunction, UnaryFunction } from '../interfaces';
  7. export declare function multicast<T>(subjectOrSubjectFactory: FactoryOrValue<Subject<T>>): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
  8. export declare function multicast<T>(SubjectFactory: (this: Observable<T>) => Subject<T>, selector?: MonoTypeOperatorFunction<T>): MonoTypeOperatorFunction<T>;
  9. export declare function multicast<T, R>(SubjectFactory: (this: Observable<T>) => Subject<T>, selector?: OperatorFunction<T, R>): OperatorFunction<T, R>;
  10. export declare class MulticastOperator<T, R> implements Operator<T, R> {
  11. private subjectFactory;
  12. private selector;
  13. constructor(subjectFactory: () => Subject<T>, selector: (source: Observable<T>) => Observable<R>);
  14. call(subscriber: Subscriber<R>, source: any): any;
  15. }