TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

`MutationObserverInit.attributeFilter` can accept an iterator, not just an array

Open trusktr opened this issue 3 years ago • 2 comments

Specifically this: https://github.com/microsoft/TypeScript/pull/50031

I'm not clear on how to make that change here.

trusktr avatar Jul 25 '22 06:07 trusktr

Yeah, unfortunately supporting this would complicate things. We can't just redefine the field in .iterable.d.ts. 😞

saschanaz avatar Sep 18 '22 12:09 saschanaz

(At this point I wonder we should get a totally separate dom.lib.d.ts for ES2015+ support, rather than augmenting ES5 version of the lib.)

saschanaz avatar Sep 18 '22 12:09 saschanaz