-
Notifications
You must be signed in to change notification settings - Fork 2
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
Convert to typescript and resolve API type errors #67
Comments
The main thought @jessegreenberg and I had this afternoon was to have Utterances support functions. And update Utterance so that it is easier to get the "alert text" from an Utterance to pass to voicing .This will better align the two APIs. Mainly this work was brought about by phetsims/sun#742. |
…, alertDescriptionUtterance, and Voicing speak functions to revolve around IAlertable and ResolvedResponse, phetsims/utterance-queue#67
…, alertDescriptionUtterance, and Voicing speak functions to revolve around IAlertable and ResolvedResponse, #67
…, alertDescriptionUtterance, and Voicing speak functions to revolve around IAlertable and ResolvedResponse, phetsims/utterance-queue#67
…, alertDescriptionUtterance, and Voicing speak functions to revolve around IAlertable and ResolvedResponse, phetsims/utterance-queue#67
…, alertDescriptionUtterance, and Voicing speak functions to revolve around IAlertable and ResolvedResponse, phetsims/utterance-queue#67
…, alertDescriptionUtterance, and Voicing speak functions to revolve around IAlertable and ResolvedResponse, phetsims/utterance-queue#67
|
Was reviewing this issue and noticed that we lost history for Utterance, Ill see if I can restore it. Other TS files in utterance-queue have history still. |
Here is how I ended up doing it. Im sure there is a cleaner way with git without having to manually revert, but some other things seemed too risky or had the same result of not saving history.
After all of this I verified that we still have history for all .ts files in utterance-queue. |
I am not sure I understand but this seems fine to me.
|
Oh wow. Thank you so much! I really appreciate you picking up the git history slack. I should have know better. I removed duplicate I'm not yet confident that UtteranceQueue is totally set up to our new Utterance.alert type, I want to take another check on this. And then perhaps convert a bit more to typescript and check the rest of the boxes above. |
OK. I believe that I'm done with this issue. @jessegreenberg, everything in this batch of commits here was a straight forward refactor except one item. I found that it felt sketchy to have a Here is an example: utterance-queue/js/SpeechSynthesisAnnouncer.ts Lines 340 to 348 in 38f0f33
Can you please spot check the conversion. Thanks! |
Oops sorry, I forgot to assign you. |
I took a look at the TS conversion and things look good. I mostly reviewed the public API like options. I also verified that we still have history for everything.
I have thoughts, but lets create a new issue. Back to you to close if it is time. |
…, alertDescriptionUtterance, and Voicing speak functions to revolve around IAlertable and ResolvedResponse, phetsims/utterance-queue#67
…, alertDescriptionUtterance, and Voicing speak functions to revolve around IAlertable and ResolvedResponse, phetsims/utterance-queue#67
This means a couple of things:
Note phetsims/tasks#1096
The text was updated successfully, but these errors were encountered: