Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1261: NodeListOf#item #1268

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9932,7 +9932,7 @@ declare var NodeList: {
};

interface NodeListOf<TNode extends Node> extends NodeList {
item(index: number): TNode;
item(index: number): TNode | null;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
Expand Down
2 changes: 1 addition & 1 deletion inputfiles/addedTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
"item": {
"name": "item",
"overrideSignatures": [
"item(index: number): TNode"
"item(index: number): TNode | null"
]
}
}
Expand Down