HotObservable.d.ts 920 B

123456789101112131415161718192021222324
  1. import { Subject } from '../Subject';
  2. import { Subscriber } from '../Subscriber';
  3. import { Subscription } from '../Subscription';
  4. import { Scheduler } from '../Scheduler';
  5. import { TestMessage } from './TestMessage';
  6. import { SubscriptionLog } from './SubscriptionLog';
  7. import { SubscriptionLoggable } from './SubscriptionLoggable';
  8. /**
  9. * We need this JSDoc comment for affecting ESDoc.
  10. * @ignore
  11. * @extends {Ignored}
  12. */
  13. export declare class HotObservable<T> extends Subject<T> implements SubscriptionLoggable {
  14. messages: TestMessage[];
  15. subscriptions: SubscriptionLog[];
  16. scheduler: Scheduler;
  17. logSubscribedFrame: () => number;
  18. logUnsubscribedFrame: (index: number) => void;
  19. constructor(messages: TestMessage[], scheduler: Scheduler);
  20. /** @deprecated This is an internal implementation detail, do not use. */
  21. _subscribe(subscriber: Subscriber<any>): Subscription;
  22. setup(): void;
  23. }