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 #3

Closed thepassle closed 3 years ago

thepassle commented 3 years ago
/**
 * Size of the text field
 * @attr
 * @type {"small"|"large"}
 */
size = "large";

constructor() {
  super();
  /**
   * Size of the text field
   * @attr
   * @type {"small"|"large"}
   */
  this.size = "large";
}
  static get observedAttributes() {
    return [
    /** some jsdoc */
    "placeholder",
    /** more jsdoc */
    "disabled",
    ];
  }
/**
 * Dispatched when the enter key is pressed
 */
this.dispatchEvent(new CustomEvent('enter'));
thepassle commented 3 years ago

closing in favor of more refined issues #18 #20 #21 #22 #23