UNPKG

use-app-events

Version:

Event system for global communication in vanilla JavaScript and React.

12 lines (11 loc) 449 B
type UseAppEventsProps = { debug: boolean; }; /** Hook for managing application events. */ declare const useAppEvents: <EventType extends string>(props?: UseAppEventsProps) => { listenForEvents: import('../../base').BaseListenForEvents<EventType> & { once: import('../../base').BaseListenForEvents<EventType>; }; notifyEventListeners: import('../../base').BaseNotifyEventListeners<EventType>; }; export default useAppEvents;