-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Updates to typedefs and documentation defaults #12193
Conversation
Thank you for the pull request, @lukemckinstry! Welcome to the Cesium community! In order for us to review your PR, please complete the following steps:
Review Pull Request Guidelines to make sure your PR gets accepted quickly. |
Thanks @lukemckinstry! I can confirm we now have you on file in the Cesium CLA. |
I am reconsidering one section of this PR concerning the 4 Frustum classes ( |
Let me confirm my understanding– You're suggesting that we should allow the properties with default value to be set to |
Usually we don't include documentation changes in CHANGES.md. However, since this affects the behavior when using typescript, we should be sure to add a bullet for these fixes. |
as discussed, this additional change is not necessary as the primary purpose of this PR is to update type definitions for optional parameters to include undefined. |
@ggetz updated CHANGES.md so this is ready for review (pending whether the CI occurs again) |
Awesome, thanks @lukemckinstry! |
Just stumbled over this: I assume that the first checkbox from #11749 (comment) can now be ticked. (At least, I did that, updating that comment to point to this PR) |
Hey @javagl, this didn't address all instances of the problem, only most of the ones that occurred in |
Description
Type definition and documentation fix for the problem identified & described here #11749 (comment)
which identifies an inconsistency in the documentation where we list default: undefined but our typedef requires a specific type.
Made fixes using the following logic
optional
in the constructor args@default
is not listed as undefined (either change to default used in constructor or remove the line entirely)... | undefined
This PR covers fixes for
Source/Core
, other areas of the codebase will be covered in future PRsIssue number and link
#11749 (comment)
Testing plan
npm run build-docs
and note changes todefault
values for targeted propertiesAuthor checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change