Skip to content
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(sample-app-ts): Fix #1785 and related problems #1786

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

cpcallen
Copy link
Contributor

  • Fix type declarations for the event listener callbacks passed to addChangeListener, to have them take Abstract instead of UiBase events, since that is how addChangeListener is declared (and there is no facility to receive only UiBase events). Part of sample-app-ts fails to build #1785.

  • Fix export/import of generator functions for both sample-app and sample-app-ts.

    The changes made in fix: update more broken / deprecated APIs for v10 #1758 to update generator declarations were not quite correct; in particular, they did not properly account for the need to apply Object.assign only to javascriptGenerator.forBlock, not to all of javascriptGenerator.

    Not technically part of sample-app-ts fails to build #1785, since it the error was not causing build failures, but very much necessary to get the sample apps working again.

  • Update formatting of generator to use template literals and apply our usual Prettier style from core.

cpcallen added 3 commits July 17, 2023 15:30
Fix the declaration of the arrow functions passed to
addChangeListener have them take Abstract instead of UiBase,
since that is how addChangeListener is declared (and there is
no facility to receive only UiBase events).

Part of google#1785.
The changes made in google#1758 to update generator declarations were
not quite correct; in particular, they did not properly account
for the need to apply Object.assign only to
javascriptGenerator.forBlock, not to all of javascriptGenerator.

Not technically part of google#1785, since it the error was not causing
_build_ failures, but very much necessary to get the sample apps
working again.
Use template literals and apply our usual Prettier style from core.
@cpcallen cpcallen added the category: example Anything in the examples folder label Jul 17, 2023
@cpcallen cpcallen requested a review from a team as a code owner July 17, 2023 14:07
@cpcallen cpcallen requested review from maribethb and removed request for a team July 17, 2023 14:07
@cpcallen cpcallen merged commit b838cf8 into google:master Jul 17, 2023
@cpcallen cpcallen deleted the fix/1785 branch July 17, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: example Anything in the examples folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants