Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

multicast.d.ts 1.3KB

12345678910111213141516
  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 { OperatorFunction, UnaryFunction, ObservedValueOf, ObservableInput } from '../types';
  7. export declare function multicast<T>(subject: Subject<T>): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
  8. export declare function multicast<T, O extends ObservableInput<any>>(subject: Subject<T>, selector: (shared: Observable<T>) => O): UnaryFunction<Observable<T>, ConnectableObservable<ObservedValueOf<O>>>;
  9. export declare function multicast<T>(subjectFactory: (this: Observable<T>) => Subject<T>): UnaryFunction<Observable<T>, ConnectableObservable<T>>;
  10. export declare function multicast<T, O extends ObservableInput<any>>(SubjectFactory: (this: Observable<T>) => Subject<T>, selector: (shared: Observable<T>) => O): OperatorFunction<T, ObservedValueOf<O>>;
  11. export declare class MulticastOperator<T, R> implements Operator<T, R> {
  12. private subjectFactory;
  13. private selector;
  14. constructor(subjectFactory: () => Subject<T>, selector: (source: Observable<T>) => Observable<R>);
  15. call(subscriber: Subscriber<R>, source: any): any;
  16. }