Skip to content

docs: Fix executeCallback JSDoc type in gsplat-resolve-sh#8682

Merged
willeastcott merged 1 commit into
mainfrom
fix/gsplat-executeCallback-jsdoc-type
May 5, 2026
Merged

docs: Fix executeCallback JSDoc type in gsplat-resolve-sh#8682
willeastcott merged 1 commit into
mainfrom
fix/gsplat-executeCallback-jsdoc-type

Conversation

@willeastcott

Copy link
Copy Markdown
Contributor

Corrects the JSDoc for CustomRenderPass.executeCallback. The previous annotation () => void | null was parsed as a function returning void | null, not a nullable callback. The property is initialized as null and later assigned a function, so the type is (() => void) | null.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects the JSDoc type annotation for CustomRenderPass.executeCallback in the gsplat SH resolve pass so that it is interpreted as a nullable callback (rather than a callback returning a nullable value), aligning the documentation with how the property is initialized (null) and later assigned (a function).

Changes:

  • Fix executeCallback JSDoc from () => void | null to (() => void) | null to correctly represent a nullable function value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@willeastcott willeastcott merged commit 8993d0e into main May 5, 2026
12 checks passed
@willeastcott willeastcott deleted the fix/gsplat-executeCallback-jsdoc-type branch May 5, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Request for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants