NodeListOf#item should return TNode | null #43
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Regarding this issue: microsoft/TypeScript-DOM-lib-generator#1268
Real return type: https://developer.mozilla.org/en-US/docs/Web/API/NodeList/item
It would be much better for item() in NodeListOf to match behaviour with at() for arrays. The small difference is that it can return null instead of undefined.
The text was updated successfully, but these errors were encountered: