runem / web-component-analyzer

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

incorrect event type #190

Open thepassle opened 3 years ago

thepassle commented 3 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