enzyme-adapter-preact-pure
Version:
Enzyme adapter for Preact
14 lines (13 loc) • 500 B
TypeScript
export interface EventData {
EventType: string;
defaultInit: EventInit;
}
/**
* Metadata for events which have different flags set by default than the
* `Event` constructor defaults or which use a subclass of `Event`.
*
* Adapted from `event-map.js` in https://github.com/testing-library/dom-testing-library,
* but changed to lower-case event names to match the actual values that would
* be seen in the `Event.type` field.
*/
export declare const eventMap: Record<string, EventData>;