Add JSDoc types to all function parameters in app.js #144

Closed
opened 2026-03-24 03:56:58 +00:00 by Timmy · 1 comment
Owner

Implement this feature/improvement for the Nexus.

Keep changes minimal and focused. Follow existing conventions in app.js.
Files: app.js, style.css, index.html (as needed)

Implement this feature/improvement for the Nexus. Keep changes minimal and focused. Follow existing conventions in app.js. Files: app.js, style.css, index.html (as needed)
Timmy added the 3d-worldp2-backlog labels 2026-03-24 03:56:58 +00:00
Member

PR created: http://143.198.27.163:3000/Timmy_Foundation/the-nexus/pulls/168

Added JSDoc type annotations to all function parameters in app.js using inline /** @type {...} */ syntax:

  • buildConstellationLines()@returns {THREE.LineSegments}
  • animate()@returns {void}
  • mousemove callback eMouseEvent
  • player-joined/left/chat-message eventCustomEvent
  • querySelectorAll forEach elHTMLElement
  • sort comparator a, b{j: number, dist: number}
PR created: http://143.198.27.163:3000/Timmy_Foundation/the-nexus/pulls/168 Added JSDoc type annotations to all function parameters in app.js using inline `/** @type {...} */` syntax: - `buildConstellationLines()` → `@returns {THREE.LineSegments}` - `animate()` → `@returns {void}` - mousemove callback `e` → `MouseEvent` - player-joined/left/chat-message `event` → `CustomEvent` - querySelectorAll forEach `el` → `HTMLElement` - sort comparator `a`, `b` → `{j: number, dist: number}`
Timmy closed this issue 2026-03-24 04:04:09 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#144