1.1.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseAn object of DOM event types and their interfaces.
Data scraped from MDN.
npm install --save-dev dom-event-typesconst eventInterfaces = require("dom-event-interfaces");
console.log(eventInterfaces);
//=> { "abort": { "eventInterface": "Event", "bubbles": false, "cancelable": false }, ... }{
[eventType]: {
eventInterface: string
cancelable: Boolean
bubbles: Boolean
}
}If cancelable or bubbles are undefined, it's because there is no entry for them on MDN.
Some events have duplicate interfaces. To make this package easier to use, duplicates have been removed. You can see a list of events with duplicate interfaces, and the interface that's exported in this project.
| name | event interfaces | interface in dom-event-types
|
|---|---|---|
| abort | Event, ProgressEvent, UIEvent | Event |
| end | Event, SpeechSynthesisEvent | Event |
| error | ProgressEvent, Event, SpeechSynthesisErrorEvent, UIEvent | Event |
| load | UIEvent, ProgressEvent | UIEvent |
| message | ServiceWorkerMessageEvent, MessageEvent | MessageEvent |
| error | ProgressEvent, Event, SpeechSynthesisErrorEvent, UIEvent | Event |