mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 19:13:28 +00:00
10 lines
429 B
Plaintext
10 lines
429 B
Plaintext
type EventNameType = keyof DocumentEventMap | keyof WindowEventMap;
|
|
type EventHandlerType = (evt: any) => void;
|
|
type EventOptionsType = boolean | AddEventListenerOptions | undefined;
|
|
export type EventStoreType = {
|
|
add: (node: EventTarget, type: EventNameType, handler: EventHandlerType, options?: EventOptionsType) => EventStoreType;
|
|
clear: () => void;
|
|
};
|
|
export declare function EventStore(): EventStoreType;
|
|
export {};
|