Skip to content

Commit e8b6e8b

Browse files
committed
swap entries and values
1 parent db878ad commit e8b6e8b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/lib/dom.iterable.d.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ interface DOMTokenList {
66

77
interface NodeList {
88

9+
910
/**
10-
* Returns an list of values in the list
11-
*/
12-
entries(): IterableIterator<Node>;
11+
* Returns an array of key, value pairs for every entry in the list
12+
*/
13+
entries(): IterableIterator<[number, Node]>;
1314
/**
1415
* Performs the specified action for each node in an list.
1516
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
@@ -20,20 +21,22 @@ interface NodeList {
2021
* Returns an list of keys in the list
2122
*/
2223
keys(): IterableIterator<number>;
24+
2325
/**
24-
* Returns an array of key, value pairs for every entry in the list
26+
* Returns an list of values in the list
2527
*/
26-
values(): IterableIterator<[number, Node]>;
28+
values(): IterableIterator<Node>;
2729

2830

2931
[Symbol.iterator](): IterableIterator<Node>
3032
}
3133

3234
interface NodeListOf<TNode extends Node> {
35+
3336
/**
34-
* Returns an list of values in the list
35-
*/
36-
entries(): IterableIterator<TNode>;
37+
* Returns an array of key, value pairs for every entry in the list
38+
*/
39+
entries(): IterableIterator<[number, TNode]>;
3740

3841
/**
3942
* Performs the specified action for each node in an list.
@@ -46,8 +49,9 @@ interface NodeListOf<TNode extends Node> {
4649
*/
4750
keys(): IterableIterator<number>;
4851
/**
49-
* Returns an array of key, value pairs for every entry in the list
52+
* Returns an list of values in the list
5053
*/
51-
values(): IterableIterator<[number, TNode]>;
54+
values(): IterableIterator<TNode>;
55+
5256
[Symbol.iterator](): IterableIterator<TNode>
5357
}

0 commit comments

Comments
 (0)