sveld icon indicating copy to clipboard operation
sveld copied to clipboard

//ts-ignore after JSDoc block wipes out description on entity

Open niktek opened this issue 1 year ago • 0 comments

/**
* 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.

niktek avatar Oct 18 '22 10:10 niktek