Skip to content

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
3 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.

3 participants