I may be missing something, but I don't see why NodeListOf exists instead of just having NodeList itself be generic. Maybe it's a vestige from a time before generic parameter defaults.
NodeList should be able to be generic with a default value of Node.
Configuration Check
afaik, this is true of all versions of lib.dom.ts. I've checked up to 5.0
Missing / Incorrect Definition
I think this should be a backwards compatible change:
lib Update Request
I may be missing something, but I don't see why NodeListOf exists instead of just having NodeList itself be generic. Maybe it's a vestige from a time before generic parameter defaults.
NodeList
should be able to be generic with a default value ofNode
.Configuration Check
afaik, this is true of all versions of lib.dom.ts. I've checked up to 5.0
Missing / Incorrect Definition
I think this should be a backwards compatible change:
Sample Code
Documentation Link
N/A though removing NodeListOf would remove a type that's only present in lid.dom.d.ts, not the actual DOM APIs.