-
Notifications
You must be signed in to change notification settings - Fork 4
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
Review TypeScript conversion #105
Comments
For the most part, this all looks great. I added and changed some comments for consistency and handled a There are a number of usages of That's it. @pixelzoom - have a look at what I've done and close if you're cool with it. I also have a couple of questions that arose out of this that I'll ask at the dev meeting, but I don't think they're worth putting into this issue. If it turns out that the rest of the team disagrees, I'll amend. |
Thanks for the review @jbphet.
They are related to #102. I've added TODOs. They are also related to the "All constructors must have the same signature!" issue, so I've replaced your "REVIEW-TS" comments with TODOs.
@jbphet what were your general questions? I might be able to answer them, before bringing to a larger forum. |
Here are the items that I put in the dev meeting notes. These are mostly for my own edification, but since you asked:
|
Yes. See TButtonAppearanceStrategy and TContentAppearanceStrategy. Something similar could be used for the "score display" classes in vegas. Perhaps using an
If you're referring to: // score display
scoreDisplayConstructor?: any; //TODO https://github.com/phetsims/vegas/issues/102
scoreDisplayOptions?: any; //TODO https://github.com/phetsims/vegas/issues/102 I think we'll end up converting those to functions that return an instance, something like: createScoreDisplay: ( scoreProperty: IProperty<number> ) => TScoreDisplay
That question has been posed in phetsims/chipper#1226. |
Thanks for the insights. I'm okay to close this and move on if you are. |
👍🏻 |
Btw... There were a few uses of |
In the 4/14/2022 developer meeting we decided that each developer should do some reviewing of another developer's TypeScript code conversions in a common code library. I was assigned to review this one (vegas).
The text was updated successfully, but these errors were encountered: