UNPKG

react-event-hook

Version:

A library for emitting and listening to events in a React application

3 lines (2 loc) 228 B
import type { CreatedEvent, Options } from "./react-event-hook.def"; export declare const createEvent: <EventName extends string>(name: EventName) => <Payload = void>({ crossTab }?: Options) => CreatedEvent<EventName, Payload>;