Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distinguish between static properties and instance properties #151

Open
bennypowers opened this issue Mar 24, 2022 · 1 comment
Open

Distinguish between static properties and instance properties #151

bennypowers opened this issue Mar 24, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@bennypowers
Copy link
Member

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

@bendera
Copy link
Contributor

bendera commented Oct 19, 2024

I think this can be closed now. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants