Forwarding JSDoc for object members whose source is a variable
I have a function documented with JSDoc which then becomes part of an object literal.
How to add description to returned object props with JSDoc or TypeScript?
I have a TypeScript project and have a custom hook which returns a bunch of variables isMobile | isDesktop | ...
and I’d like to add a description to each of these variables so that somewhere in project I could hover over a variable and get a description (type annotation will come from TS). How can I do that or is that possible?