[claude] Add JSDoc types to all function parameters (#144) #168
Reference in New Issue
Block a user
Delete Branch "claude/issue-144"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #144
Adds JSDoc type annotations to all function parameters in
app.js:buildConstellationLines()— added@returns {THREE.LineSegments}animate()— added@returns {void}mousemovecallback —@type {MouseEvent}oneplayer-joined,player-left,chat-messagecallbacks —@type {CustomEvent}oneventquerySelectorAllforEach callbacks —@type {HTMLElement}onelneighbors.sortcomparator —@type {{j: number, dist: number}}onaandbAll annotations use inline JSDoc syntax (
/** @type {...} */) inside callback parameter lists, which is the standard pattern for unextracted arrow function parameters.- Added @returns JSDoc to buildConstellationLines() and animate() - Added inline @type annotations to all callback parameters: - MouseEvent for mousemove handler - CustomEvent for player-joined, player-left, chat-message handlers - HTMLElement for querySelectorAll forEach callbacks - {j: number, dist: number} for neighbors.sort comparator Fixes #144 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>🤖 Merge Bot: CI validation passed (HTML, JS syntax, JSON, size budget). Auto-merging.