LearnNewsExamplesServices
Frontmatter
id9291
titleFix JSDoc parsing error in devindex Storage.mjs
stateClosed
labels
bugdocumentationaibuild
assigneestobiu
createdAtFeb 24, 2026, 5:18 PM
updatedAtFeb 24, 2026, 5:19 PM
githubUrlhttps://github.com/neomjs/neo/issues/9291
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 24, 2026, 5:19 PM

Fix JSDoc parsing error in devindex Storage.mjs

Closed v12.0.0 bugdocumentationaibuild
tobiu
tobiu commented on Feb 24, 2026, 5:18 PM

Problem

The JSDoc compiler (jsdoc-x) fails to parse @apps/devindex/services/Storage.mjs during the buildAll process. The error is caused by invalid JSDoc syntax for an array of objects with optional properties: Array<{login: String, lastUpdate: String, delete?: Boolean}>. The JSDoc compiler does not support the ? syntax within an inline object definition in this context.

Solution

Update the JSDoc comment for the updateTracker method in Storage.mjs to use standard JSDoc array-of-objects syntax:

* @param {Object[]} updates List of update operations.
* @param {String} updates[].login The user's login.
* @param {String} [updates[].lastUpdate] The last update timestamp.
* @param {Boolean} [updates[].delete] True to delete the user.

This syntax is fully supported by standard JSDoc compilers and accurately describes the expected data structure.

tobiu added the bug label on Feb 24, 2026, 5:18 PM
tobiu added the documentation label on Feb 24, 2026, 5:18 PM
tobiu added the ai label on Feb 24, 2026, 5:18 PM
tobiu added the build label on Feb 24, 2026, 5:18 PM
tobiu referenced in commit ed29d45 - "docs: Fix JSDoc parsing error in devindex Storage.mjs (#9291)" on Feb 24, 2026, 5:18 PM
tobiu assigned to @tobiu on Feb 24, 2026, 5:19 PM
tobiu
tobiu Feb 24, 2026, 5:19 PM

Input from Gemini 3.1 Pro:

✦ I have fixed the JSDoc syntax error in apps/devindex/services/Storage.mjs.

The invalid Array<{...}> inline object syntax containing the unsupported ? character has been replaced with the standard JSDoc Object[] structure along with individual @param tags documenting each property (updates[].login, [updates[].lastUpdate], etc.).

The commit has been pushed and this issue is now closed.

tobiu closed this issue on Feb 24, 2026, 5:19 PM