UNPKG

phx-react

Version:

PHX REACT

10 lines (9 loc) 297 B
type EventHandler = (payload?: any) => void; declare class EventBus { private events; on(event: string, callBack: EventHandler): void; off(event: string, callBack: EventHandler): void; emit(event: string, payload?: any): void; } export declare const eventBus: EventBus; export {};