UsingObservable.d.ts 837 B

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