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

Handle Union as input arg #114

Open
francisbouvier opened this issue Oct 9, 2023 · 0 comments
Open

Handle Union as input arg #114

francisbouvier opened this issue Oct 9, 2023 · 0 comments
Labels
feature New feature or request
Milestone

Comments

@francisbouvier
Copy link
Member

francisbouvier commented Oct 9, 2023

We handle union as return type (ie. Zig -> JS) but we also need to handle union as input type (ie. JS -> Zig).

Use case: https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after

Here node input argument can be either a proper Node or a simple string. Zig unions should be the right type to handle this case.

Links to #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant