EventStore.d.ts 429 B

123456789
  1. type EventNameType = keyof DocumentEventMap | keyof WindowEventMap;
  2. type EventHandlerType = (evt: any) => void;
  3. type EventOptionsType = boolean | AddEventListenerOptions | undefined;
  4. export type EventStoreType = {
  5. add: (node: EventTarget, type: EventNameType, handler: EventHandlerType, options?: EventOptionsType) => EventStoreType;
  6. clear: () => void;
  7. };
  8. export declare function EventStore(): EventStoreType;
  9. export {};