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

Support Observer callback union for subscription #89

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

domfarolino
Copy link
Collaborator

@domfarolino domfarolino commented Nov 29, 2023

This closes #71. The WebIDL Standard is now poised to support typedef unions between dictionary and callback types, which would enables a highly desired ergonomic feature: subscribing with just a callback instead of a full-blown Observer dictionary. See whatwg/webidl#1353 and #71 (comment). The work is just waiting on another implementer besides Chromium, which we may be able to get via this proposal, which is a concrete user of this proposed Web IDL behavior.

Work is underway to update the Chromium implementation to match this as well: https://chromium-review.googlesource.com/c/chromium/src/+/5071992


Preview | Diff

@domfarolino domfarolino merged commit cfffd49 into master Nov 29, 2023
1 check passed
@domfarolino domfarolino deleted the support-observer-union branch November 29, 2023 16:04
github-actions bot added a commit that referenced this pull request Nov 29, 2023
SHA: cfffd49
Reason: push, by domfarolino

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

subscribe(fn) and/or subscribe(observer)
1 participant