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

duplicate attributes #45

Closed thepassle closed 3 years ago

thepassle commented 3 years ago
/**
 * Banner component
 *
 * @attr type - Determines the style, can be "info", "warning", or "error". Default is "info"
 * @attr corner - Determines if banner sets position at upper right corner or not.
 *
 * @slot header - Primary message of the banner.
 * @slot content - Secondary message of the banner. Used to provide a description.
 */
export class Banner extends SpectrumElement {
    @property({ reflect: true, type: String })
    public type: 'info' | 'warning' | 'error' = 'info';

    @property({ reflect: true, type: Boolean })
    public corner = false;
}
"attributes": [
            {
              "name": "type",
              "type": {
                "type": ""
              },
              "description": "Determines the style, can be \"info\", \"warning\", or \"error\". Default is \"info\""
            },
            {
              "name": "corner",
              "type": {
                "type": ""
              },
              "description": "Determines if banner sets position at upper right corner or not."
            },
            {
              "name": "type",
              "fieldName": "type"
            },
            {
              "name": "corner",
              "fieldName": "corner"
            }
          ],