UNPKG

react-query

Version:

Hooks for managing, caching and syncing asynchronous and remote data in React

11 lines (10 loc) 331 B
declare type Listener = () => void; export declare class Subscribable<TListener extends Function = Listener> { protected listeners: TListener[]; constructor(); subscribe(listener?: TListener): () => void; hasListeners(): boolean; protected onSubscribe(): void; protected onUnsubscribe(): void; } export {};