Closed ekhaled closed 3 years ago
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" }
Hi, you are completelly right!
It would be nice if we could get the default values and keywords of exported aliases
Current output:
Preferred output: