-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more JSDoc types #4205
Add more JSDoc types #4205
Conversation
Just a nudge to say that the CI is failing... |
Can you confirm that |
There are eight errors, two related to this PR (should have used Currently rewriting this PR to use
|
src/framework/app-base.js
Outdated
* @callback MakeTickCallback | ||
* @param {number} [timestamp] - The timestamp supplied by requestAnimationFrame. | ||
* @param {*} [frame] - XRFrame from requestAnimationFrame callback. | ||
* @returns {void} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can delete this line right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, thank you!
I tried to look into the other errors and it boils down to engine/src/framework/app-options.js Lines 85 to 104 in e6d3994
However, I don't know a way to fix it in pure JSDoc. It seems like e.g. What VSCode/TypeScript likes most seems to be: (basically for the lack of a proper But that trips up JSDoc again... so I feel like Doc on |
I like to typify code 😅 I don't know how self-explanatory these types are, I happily answer questions.
I confirm I have read the contributing guidelines and signed the Contributor License Agreement.