UNPKG

@taquito/taquito

Version:

High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.

22 lines (21 loc) 880 B
import { Observable, OperatorFunction } from 'rxjs'; import { Subscription } from './interface'; export { UnsupportedEventError } from './errors'; export declare class ObservableSubscription<T> implements Subscription<T> { private shouldRetry; private operatorFunction; private errorListeners; private messageListeners; private closeListeners; private completed$; constructor(obs: Observable<T>, shouldRetry?: boolean, operatorFunction?: OperatorFunction<T, T>); private call; private remove; on(type: 'error', cb: (error: Error) => void): void; on(type: 'data', cb: (data: T) => void): void; on(type: 'close', cb: () => void): void; off(type: 'error', cb: (error: Error) => void): void; off(type: 'data', cb: (data: T) => void): void; off(type: 'close', cb: () => void): void; close(): void; }