Types: Add "cesiumTypes" JSDoc plugin, update Runtime- and DeveloperError.js#13211
Open
donmccurdy wants to merge 2 commits intomainfrom
Open
Types: Add "cesiumTypes" JSDoc plugin, update Runtime- and DeveloperError.js#13211donmccurdy wants to merge 2 commits intomainfrom
donmccurdy wants to merge 2 commits intomainfrom
Conversation
Contributor
|
Thank you for the pull request, @donmccurdy! ✅ We can confirm we have a CLA on file for you. |
This was referenced Feb 17, 2026
6 tasks
…siumTypes" JSDoc plugin
1d56cb1 to
7f44187
Compare
This was referenced Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Changes:
@ignore(for Types: Separating 'private' vs. 'internal' visibility #13205) and@returns {never}annotations toDeveloperError.throwInstantiationError(). The return type is so the type checker understands that this method always throws; otherwise it will complain that an abstract method does not return the expected type.Motivated by use cases in #13212, but split out here because that's already a very large PR. :) For example...
... as a workaround for jsdoc/jsdoc#1349. Returns a BufferPrimitive subclass constructor, not an instance of a class.
In #13212, see:
packages/engine/Source/Scene/BufferPrimitiveCollection.jspackages/engine/Source/Core/assert.jsIssue number and link
Testing plan
Run:
And check documentation, and Cesium.d.ts.
Author checklist
CONTRIBUTORS.mdI have updatedCHANGES.mdwith a short summary of my changeI have added or updated unit tests to ensure consistent code coveragePR Dependency Tree
This tree was auto-generated by Charcoal