WICG / observable

Observable API proposal
https://wicg.github.io/observable/
Other
546 stars 12 forks source link

Support Observer callback union for subscription #89

Closed domfarolino closed 7 months ago

domfarolino commented 7 months ago

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 https://github.com/whatwg/webidl/pull/1353 and https://github.com/WICG/observable/issues/71#issuecomment-1804042861. 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