api-viewer-element icon indicating copy to clipboard operation
api-viewer-element copied to clipboard

Distinguish between static properties and instance properties

Open bennypowers opened this issue 2 years ago • 1 comments

given

{
  "schemaVersion": "1.0.0",
  "readme": "",
  "modules": [
    {
      "kind": "javascript-module",
      "path": "rh-jazz-hands.js",
      "declarations": [
        {
          "kind": "class",
          "description": "Jazz Hands",
          "name": "RhJazzHands",
          "slots": [
            {
              "description": "Place element content here",
              "name": ""
            }
          ],
          "members": [
            {
              "kind": "field",
              "name": "version",
              "type": {
                "text": "string"
              },
              "static": true,
              "default": "1.0.0",
              "readonly": true
            },
            {
              "kind": "field",
              "name": "type",
              "type": {
                "text": "string"
              }
            }
          ],
          "superclass": {
            "name": "LitElement",
            "package": "lit"
          },
          "tagName": "rh-jazz-hands",
          "customElement": true
        }
      ],
      "exports": [
        {
          "kind": "js",
          "name": "RhJazzHands",
          "declaration": {
            "name": "RhJazzHands",
            "module": "rh-jazz-hands.js"
          }
        },
        {
          "kind": "custom-element-definition",
          "name": "rh-jazz-hands",
          "declaration": {
            "name": "RhJazzHands",
            "module": "rh-jazz-hands.js"
          }
        }
      ]
    }
  ]
}

Expected: in docs view, under 'Properties', version is listed as static

Actual: in docs view, under 'Properties', version is listed just like type

bennypowers avatar Mar 24 '22 12:03 bennypowers