use-app-events
Version:
Event system for global communication in vanilla JavaScript and React.
8 lines (7 loc) • 307 B
TypeScript
import { BaseListenForEvents } from '../base';
import { Extend } from '../types';
type ListenForEvents<EventType extends string = string> = Extend<BaseListenForEvents<EventType>, {
once: BaseListenForEvents<EventType>;
}>;
declare const listenForEvents: ListenForEvents;
export default listenForEvents;