UNPKG

@iore8655/react-bus

Version:

@iore8655/react-bus is a global/local state management by pub/sub

11 lines (10 loc) 265 B
export declare const context: { subId: number; }; export declare class Bus { protected subscribers: any; constructor(); getSubscribers(): any; subscribe(subId: string, callback: Function): void; unsubscribe(subId: string): void; }