-
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
Integration with tsd-jsdoc for generating typings #6767
Conversation
@bampakoa, thanks for the pull request! Maintainers, we have a signed CLA from @bampakoa, so you can review this at any time.
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
Thanks for the pull request @bampakoa! These changes look good so far. Let us know when this is ready for a full review |
@hpinkos I have added the |
Hmm, |
@hpinkos I have noticed that Cesium uses |
@bampakoa this is one of our custom tags. You can see the others here: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Tools/jsdoc/cesiumTags.js
|
@hpinkos I added also PR is now ready for review. There are a lot of warnings yet but tsd-jsdoc is now running successfully with Cesium repo. |
Source/Scene/LabelCollection.js
Outdated
@@ -599,7 +599,7 @@ define([ | |||
* calling <code>update</code>. | |||
* | |||
* @exception {DeveloperError} This object was destroyed, i.e., destroy() was called. | |||
* | |||
* @memberOf {LabelCollection.prototype} |
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.
These shouldn't be needed. We don't do this for our prototype functions in any other class
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 have seen it in various places of the code https://github.com/AnalyticalGraphicsInc/cesium/search?p=4&q=memberOf&type=Code and I thought that tsd-jsdoc was failing due to this one. Is there any similar file such as LabelCollection
that I could check out instead?
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.
Yes, we use @memberof
for properties added to prototype via defineProperties
but shouldn't need it for class methods
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.
BillboardCollection
is very similar to LabelCollection
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.
Thanks for the clarification 😃 I will update the PR accordingly.
I just had that one comment. These changes look fine to me. Does anyone else want to take a look? I'll merge this by the end of the week if no one else has comments |
…he LabelCollection by its type.
@hpinkos the changes in the PR are available for review |
Everything looks good @bampakoa! I can confirm the documentation builds correctly. |
I'll add a comment to CHANGES.md in master |
I would have done it, as @cesium-concierge notified me about it, but I thought it was not meant to be an actual change 🤔 |
No worries 😄 I just decided to do it to save some additional back and forth. I wasn't sure if it warranted a line in CHANGES initially, but I think other users using TypeScript will be interested in this so I decided to add it. Thanks again for the contribution! |
References #5717
This PR contains modifications in the
jsdoc
block tags so that we can nicely integrate withtsd-jsdoc
and create a typings file for the library. Initially we are adding missing jsdoc block tags in order for tsd-jsdoc to have a first time pass from each subfolder of Sources directory and compile successfully.