This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/dom-event-types
cranberry ed23347e56 Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
..
.editorconfig Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
.eslintrc Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
LICENSE Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
README.md Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
dom-event-types.json Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
index.js Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
package.json Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
scrape.js Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
test.js Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00
yarn.lock Initial comission of TheLounge base files 2020-11-01 22:46:04 +00:00

README.md

dom-event-types

An object of DOM event types and their interfaces.

Data scraped from MDN.

Usage

npm install --save-dev dom-event-types
const eventInterfaces = require("dom-event-interfaces");

console.log(eventInterfaces);
//=> { "abort": { "eventInterface": "Event", "bubbles": false, "cancelable": false }, ... }

Shape

{
  [eventType]: {
    eventInterface: string
    cancelable?: Boolean
    bubbles?: Boolean
  }
}

If cancelable or bubbles are undefined, its because there is no entry for them on MDN.

Duplicates

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 thats 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