import { Observable, Unsubscribable, SubscribableOrPromise, using } from 'rxjs'; export class UsingObservable extends Observable { static create(resourceFactory: () => Unsubscribable | void, observableFactory: (resource: Unsubscribable | void) => SubscribableOrPromise | void): Observable { return using(resourceFactory, observableFactory); } }