You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Web API type definition issue] lib.dom options parameter for MutationObserver#observe should not be optional #2566
An object providing options that describe which DOM mutations should be reported to mutationObserver's callback. At a minimum, one of childList, attributes, and/or characterData must be true when you call observe(). Otherwise, a TypeError exception will be thrown.
Activity
saschanaz commentedon Oct 7, 2026
Looks like this is only marked optional because webidl can't represent complex member dependency.
saschanaz commentedon Oct 7, 2026
But I'm not sure TypeScript can represent "pass one member at least" kind of type either?