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 PROPERTIES #21

Closed thepassle closed 3 years ago

thepassle commented 3 years ago
class MyElement extends HTMLElement {
  /**
   * @type {string} - description
   */
  prop = 'foo';

  constructor() {
    super();
    /** @type {number} - description */ // if duplicate description/type, overwrite the description/type above
    this.prop = 'foo';
  }
}
thepassle commented 3 years ago

implemented in https://github.com/open-wc/custom-elements-json/pull/27