Skip to content

Update lib.dom.d.ts, MutationObserverInit.attributeFilter can accept an iterator#50031

Closed
trusktr wants to merge 1 commit intomicrosoft:mainfrom
trusktr:patch-2
Closed

Update lib.dom.d.ts, MutationObserverInit.attributeFilter can accept an iterator#50031
trusktr wants to merge 1 commit intomicrosoft:mainfrom
trusktr:patch-2

Conversation

@trusktr
Copy link
Contributor

@trusktr trusktr commented Jul 25, 2022

I have a feeling this is in the wrong place, but figured I'd get started and then redirected. Iterators work fine in this location:

const obs = new MutationObserver(...)

const m = new Map()
// ... set some keys on the map ...

obs.observe(el, {
  attributeFilter: m.keys() // it works
})

Further explanation: whatwg/dom#1092

Fixes #

`MutationObserverInit.attributeFilter` can accept an iterator
@typescript-bot
Copy link
Collaborator

It looks like you've sent a pull request to update our 'lib' files. These files aren't meant to be edited by hand, as they consist of last-known good states of the compiler and are generated from 'src/lib' or possibly our lib generator. Unless this is necessary, consider closing the pull request and sending a separate PR to update 'src/lib' or https://github.com/microsoft/TypeScript-DOM-lib-generator

@typescript-bot typescript-bot added the lib update PR modifies files in the `lib` folder label Jul 25, 2022
@typescript-bot
Copy link
Collaborator

It looks like you've sent a pull request to update some generated declaration files related to the DOM. These files aren't meant to be edited by hand, as they are synchronized with files in the TSJS-lib-generator repository. You can read more here. For house-keeping purposes, this pull request will be closed.

@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jul 25, 2022
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@trusktr
Copy link
Contributor Author

trusktr commented Aug 27, 2023

This is still an issue. How do we fix it?

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug lib update PR modifies files in the `lib` folder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants