runem / web-component-analyzer

CLI that analyzes web components and emits documentation
https://runem.github.io/web-component-analyzer
MIT License
507 stars 65 forks source link

incorrect event type #190

Open thepassle opened 4 years ago

thepassle commented 4 years ago

Given the following code:

  __close() {
    this.dispatchEvent(
      new CustomEvent('opened-changed', {
        detail: false,
      }),
    );
    this.__button.setAttribute('aria-expanded', 'false');
  }

I get the following output:

"events": [
            {
              "name": "opened-changed",
              "type": "Event"
            }
          ],

The type of the event here should be CustomEvent according to the proposed schema https://github.com/webcomponents/custom-elements-json/pull/9/files