ScalarObservable.d.ts 665 B

123456789101112131415161718
  1. import { IScheduler } from '../Scheduler';
  2. import { Observable } from '../Observable';
  3. import { Subscriber } from '../Subscriber';
  4. import { TeardownLogic } from '../Subscription';
  5. /**
  6. * We need this JSDoc comment for affecting ESDoc.
  7. * @extends {Ignored}
  8. * @hide true
  9. */
  10. export declare class ScalarObservable<T> extends Observable<T> {
  11. value: T;
  12. private scheduler;
  13. static create<T>(value: T, scheduler?: IScheduler): ScalarObservable<T>;
  14. static dispatch(state: any): void;
  15. _isScalar: boolean;
  16. constructor(value: T, scheduler?: IScheduler);
  17. /** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T>): TeardownLogic;
  18. }