Skip to content

Default value and keywords of exported aliases not merged #83

@ekhaled

Description

@ekhaled

It would be nice if we could get the default values and keywords of exported aliases

    /**
     * CSS class for the component
     * @type {'main' | 'sidebar'}
     * 
     */
    let klass = "main";

    export {klass as class}

Current output:

    {
      "visibility": "public",
      "description": "CSS class for the component",
      "keywords": [],
      ...
      "type": {
        "kind": "union",
        "text": "'main' | 'sidebar'",
        "type": [
          {
            ...
          },
          {
            ...
          }
        ]
      },
      "localName": "klass"
    }

Preferred output:

    {
      "keywords": [
        {
          "name": "type",
          "description": "{'main' | 'sidebar'}"
        }
      ],
      "visibility": "public",
      "description": "CSS class for the component",
      ...
      "type": {
        "kind": "union",
        "text": "'main' | 'sidebar'",
        "type": [...] //same as above
      },
      "localName": "klass",
      "defaultValue": "main"
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions