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] Polymer 3 support #5

Closed thepassle closed 3 years ago

thepassle commented 3 years ago

I think this only requires a small change to the static properties getter, since it supports a default value, e.g.:

  static get properties() {
    return {
      mode: {
        type: String,
        value: 'auto'
      },

      data: {
        type: Object,
        notify: true,
        value: function() { return {}; }
      }
    }
  }

Note that objects and arrays are a function that return an object or array