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 ATTRIBUTES #18

Closed thepassle closed 3 years ago

thepassle commented 3 years ago

Fixture:

class MyElement extends HTMLElement {
  static get observedAttributes() {
    return [
    /** some jsdoc */ // only description
    "placeholder",
    /**
     * Disabled the component // description goes here, or after the type. 
     * @type {disabled} 
     * @type {disabled} - Disables the component // If this is present, override the description above
     * @property disabled // adds a `"fieldName": "prop1"` to the attr in the output CE.json
     */
    "disabled",
    ];
  }
}