open-wc / custom-elements-manifest-deprecated

Custom Elements Manifest is a file format that describes custom elements in your project.
8 stars 4 forks source link

[core] better jsdoc support EVENTS #20

Closed thepassle closed 3 years ago

thepassle commented 3 years ago
class MyElement extends HTMLElement {
  /**
   * Dispatched when the enter key is pressed
   * @fires {Event} some-event - some description for some-event
   * @event {SomeCustomEvent} foo-changed - some description for foo-changed
   */
  this.dispatchEvent(new CustomEvent('foo-changed'));
}