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.
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