Open thepassle opened 4 years ago
Given the following component:
I get the following schema:
if I remove the * @element generic-switch, I only get a very small subset of the expected schema above:
* @element generic-switch
Given the following component:
component
```js import { KEYCODES } from '../utils/keycodes.js'; const template = document.createElement('template'); template.innerHTML = `I get the following schema:
schema
```json { "version": "experimental", "modules": [ { "path": "web-component-analyzer.ts", "exports": [ { "kind": "class", "superclass": { "name": "HTMLElement" }, "name": "GenericSwitch", "members": [ { "kind": "field", "name": "checked", "privacy": "public" } ], "tagName": "generic-switch", "events": [ { "name": "checked-changed", "type": "Event" } ], "attributes": [ { "name": "checked", "fieldName": "checked" }, { "name": "disabled" }, { "name": "label" } ], "cssProperties": [ { "name": "--generic-switch-focus", "description": "Customizes the focus styles of the thumb" } ], "cssParts": [ { "name": "label" }, { "name": "thumb" }, { "name": "track" }, { "name": "button" } ] } ] } ] } ```if I remove the
* @element generic-switch
, I only get a very small subset of the expected schema above:schema
```json { "version": "experimental", "modules": [ { "path": "web-component-analyzer.ts", "exports": [ { "kind": "class", "superclass": { "name": "HTMLElement" }, "name": "GenericSwitch", "members": [ { "kind": "field", "name": "checked", "privacy": "public" } ] } ] } ] } ```