runem / web-component-analyzer

CLI that analyzes web components and emits documentation
https://runem.github.io/web-component-analyzer
MIT License
504 stars 64 forks source link

[LitElement] Default array values not extracted #130

Closed kylewelsby closed 4 years ago

kylewelsby commented 4 years ago

Components that are written with array input do not out-put the programmed default values in the properties table.

Example code

class MyComp extends LitElement {
  /**
   * should render default values
   */
  @property({
    type: Array
  })
  myArray = ["value"]
}

Expected output

Property Attribute Type Default Description
myArray myArray string[] ["value"] should render default values
runem commented 4 years ago

Thanks for reporting this issue! It has now been fixed on the refactor branch. I will close this issue when the fix has been published :+1: