UNPKG

synthetic-event

Version:

A collection of base classes for custom events and event targets.

14 lines (13 loc) 288 B
/** * An event. */ export interface Event<TEventType extends string = string, TTarget = unknown> { /** * The type of the event. */ type: TEventType; /** * A reference to the target to which the event was originally dispatched. */ target?: TTarget; }