Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

multicast.d.ts 1.4KB

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