Relative Content

Tag Archive for typescriptjsdoc

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?