sveld
sveld copied to clipboard
//ts-ignore after JSDoc block wipes out description on entity
/**
* Provide a writable store to maintain list selection.
* @type { Writable<T> | Writable<T[]> }
* @default undefined
*
*/
//@ts-ignore
export let selected: Writable<T> = getContext('selected');
This results in the following JSON coming through to us from site-plugin-sveld.
{
"name": "selected",
"kind": "let",
"isFunction": false,
"isFunctionDeclaration": false,
"constant": false,
"reactive": false
},
Removing the //@ts-ignore brings back the description. It would be great if we could still get the @type emitted even if it's not used for creating the types. Obviously related to #49 though.