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

handle destructuring in functionlikes #41

Closed thepassle closed 3 years ago

thepassle commented 3 years ago

example:

input

class MyElement extends HTMLElement {
  /**
   * @param {Object} opts
   * @param {string} opts.currency
   */
  _onCurrencyChanged({ currency }) {}
}

output:

              "parameters": [
                {
                  "name": "opts",
                  "type": {
                    "type": "Object"
                  }
                },
                {
                  "name": "opts.currency",
                  "type": {
                    "type": "string"
                  }
                },
                {}
              ]