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

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

Open
niktek opened this issue Oct 18, 2022 · 0 comments
Open

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

niktek opened this issue Oct 18, 2022 · 0 comments

Comments

@niktek
Copy link

niktek commented Oct 18, 2022

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

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

No branches or pull requests

1 participant