@yoroi/types
Version:
The Yoroi Types package of Yoroi SDK
22 lines (20 loc) • 622 B
Flow
/**
* 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;