Skip to content

Handle Union as input arg #114

@francisbouvier

Description

@francisbouvier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions