-
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
Fix JSDoc annotations #458
Conversation
@@ -522,6 +522,7 @@ describe('StreamingEngine', function() { | |||
* Initializes or switches to the given period. | |||
* | |||
* @param {shakaExtern.Period} period | |||
* @return {{audio: shakaExtern.Stream, video: shakaExtern.Stream}} |
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 this should be {!Object.<string, shakaExtern.Stream>}
Thanks. Updated per your comment. |
I actually updated again to |
@@ -522,6 +522,7 @@ describe('StreamingEngine', function() { | |||
* Initializes or switches to the given period. |
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.
This comment is out of date. Can you please update to "Choose streams for the given period"? Same in player_unit and streaming_engine_unit.
Updated the comments per your feedback. PTAL |
Since shakaExtern.Stream is a typedef of a record type, it is already non-nullable by default, but there's nothing wrong with adding the exclamation point. |
Thanks for the explanation. I didn't realize that. |
Yeah, sometimes Closure is more subtle than I would like. |
Testing in progress... |
All tests passed! |
No description provided.