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

Revert "[tsgen] Handle different get/set types for value_objects too." #22569

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

brendandahl
Copy link
Collaborator

Reverts #22439

This was working okay for when the user gets a value_object in TS, but when setting a value_object with an object literal this code does not type check correctly. There's an upstream issues about this. I think instead of generating getter/setters we can instead have two type definitions for each value_object. One for reading from TS and one for write from TS. Until I get around to trying that I think we can revert this in the meantime.

@brendandahl brendandahl merged commit 816497f into main Sep 16, 2024
27 of 29 checks passed
@brendandahl brendandahl deleted the revert-22439-tsgen-string-val branch September 16, 2024 21:03
brendandahl added a commit to brendandahl/emscripten that referenced this pull request Sep 18, 2024
In the new TS file we can add tests for things where just checking if the
definition file compiles is not enough. This will help catch issues like
emscripten-core#22569.
brendandahl added a commit that referenced this pull request Nov 20, 2024
In the new TS file we can add tests for things where just checking if
the definition file compiles is not enough. This will help catch issues
like #22569.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants