UI for Zipcoin Blue

IfObservable.d.ts 802B

1234567891011121314151617
  1. import { Observable, SubscribableOrPromise } from '../Observable';
  2. import { Subscriber } from '../Subscriber';
  3. import { TeardownLogic } from '../Subscription';
  4. /**
  5. * We need this JSDoc comment for affecting ESDoc.
  6. * @extends {Ignored}
  7. * @hide true
  8. */
  9. export declare class IfObservable<T, R> extends Observable<T> {
  10. private condition;
  11. private thenSource;
  12. private elseSource;
  13. static create<T, R>(condition: () => boolean | void, thenSource?: SubscribableOrPromise<T> | void, elseSource?: SubscribableOrPromise<R> | void): Observable<T | R>;
  14. constructor(condition: () => boolean | void, thenSource?: SubscribableOrPromise<T> | void, elseSource?: SubscribableOrPromise<R> | void);
  15. /** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T | R>): TeardownLogic;
  16. }