Skip to content

Add support for WebIDL records#4030

Merged
daxpedda merged 1 commit intowasm-bindgen:mainfrom
daxpedda:record
Jul 30, 2024
Merged

Add support for WebIDL records#4030
daxpedda merged 1 commit intowasm-bindgen:mainfrom
daxpedda:record

Conversation

@daxpedda
Copy link
Copy Markdown
Member

@daxpedda daxpedda commented Jul 30, 2024

This PR adds support for WebIDL records by exposing it as a js_sys::Object.

While I do think that its unfortunate that we don't make use of the types already extracted from the WebIDL, this is already the case for many other types, e.g. Promise, FrozenArray, returned unions.
So I think instead of holding this up any longer, we can save any further improvements for future breaking changes.

Fixes #3587.

@daxpedda daxpedda merged commit 12f560a into wasm-bindgen:main Jul 30, 2024
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.

Include Record Type

1 participant