Category "jsdoc"

How to document LWC Salesforce components public variables with JSDoc?

JSDoc skips my public LWC variables. Here is an example: /** * SomePublicVarName mode - default is false. * * @type {boolean} */ @a

JSDoc equivalent to Typescript's `as const`?

I'm in an old project that is too huge to easily convert to Typescript, so I've been using JSDoc instead. The Typescript feature that I can't figure out how to

Using an imported type in JSDoc @typedef

I'm trying to reduce duplication in specifying my imported types as follows but I'm getting an error /** @typedef {import("../types/util")} util @typedef {util.

Using an imported type in JSDoc @typedef

I'm trying to reduce duplication in specifying my imported types as follows but I'm getting an error /** @typedef {import("../types/util")} util @typedef {util.

Write JSdoc for generic function in typescript

I've distilled an essence of my problem with following codes: full source I have Base class, and Derived, Derived2: class Base { static get type() {

How to document destructured variable with jsdoc

I have something like this: let { total } = settings; How do I document the total variable? I tried something like this: /** * @type {Object} * @property

Is there a detailed documentation on how to create own jsdoc templates?

Short version: If I wanted to develop a completely new jsDoc template from scratch, what would I have to read to understand what jsDoc does, what interface my t