UNPKG

@yoroi/types

Version:
22 lines (20 loc) 622 B
/** * Flowtype definitions for observer-manager * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ import { Observable, Observer, Subscription } from "rxjs"; export type AppSubscriber<T> = | $Rest<Observer<T>, { ... }> | ((value: T) => void); export type AppObserverManager<T> = $ReadOnly<{ subscribe: (observerOrNext: AppSubscriber<T>) => Subscription, unsubscribe: (subscription: Subscription) => void, notify: (value: T) => void, destroy: () => void, observable: Observable<T>, ... }>; export type AppObserverSubscribe<T> = ( subscriber: AppSubscriber<T> ) => Subscription;