@@ -24,10 +24,104 @@ interface DOMTokenList {
24
24
[ Symbol . iterator ] ( ) : IterableIterator < string > ;
25
25
}
26
26
27
+ interface FormData {
28
+ /**
29
+ * Returns an array of key, value pairs for every entry in the list
30
+ */
31
+ entries ( ) : IterableIterator < [ string , string | File ] > ;
32
+ /**
33
+ * Returns a list of keys in the list
34
+ */
35
+ keys ( ) : IterableIterator < string > ;
36
+ /**
37
+ * Returns a list of values in the list
38
+ */
39
+ values ( ) : IterableIterator < string | File > ;
40
+
41
+ [ Symbol . iterator ] ( ) : IterableIterator < string | File > ;
42
+ }
43
+
44
+ interface Headers {
45
+ [ Symbol . iterator ] ( ) : IterableIterator < [ string , string ] > ;
46
+ /**
47
+ * Returns an iterator allowing to go through all key/value pairs contained in this object.
48
+ */
49
+ entries ( ) : IterableIterator < [ string , string ] > ;
50
+ /**
51
+ * Returns an iterator allowing to go through all keys f the key/value pairs contained in this object.
52
+ */
53
+ keys ( ) : IterableIterator < string > ;
54
+ /**
55
+ * Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
56
+ */
57
+ values ( ) : IterableIterator < string > ;
58
+ }
59
+
27
60
interface NodeList {
28
- [ Symbol . iterator ] ( ) : IterableIterator < Node >
61
+ /**
62
+ * Returns an array of key, value pairs for every entry in the list
63
+ */
64
+ entries ( ) : IterableIterator < [ number , Node ] > ;
65
+ /**
66
+ * Performs the specified action for each node in an list.
67
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
68
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
69
+ */
70
+ forEach ( callbackfn : ( value : Node , index : number , listObj : NodeList ) => void , thisArg ?: any ) : void ;
71
+ /**
72
+ * Returns an list of keys in the list
73
+ */
74
+ keys ( ) : IterableIterator < number > ;
75
+
76
+ /**
77
+ * Returns an list of values in the list
78
+ */
79
+ values ( ) : IterableIterator < Node > ;
80
+
81
+
82
+ [ Symbol . iterator ] ( ) : IterableIterator < Node > ;
29
83
}
30
84
31
85
interface NodeListOf < TNode extends Node > {
32
- [ Symbol . iterator ] ( ) : IterableIterator < TNode >
86
+
87
+ /**
88
+ * Returns an array of key, value pairs for every entry in the list
89
+ */
90
+ entries ( ) : IterableIterator < [ number , TNode ] > ;
91
+
92
+ /**
93
+ * Performs the specified action for each node in an list.
94
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
95
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
96
+ */
97
+ forEach ( callbackfn : ( value : TNode , index : number , listObj : NodeListOf < TNode > ) => void , thisArg ?: any ) : void ;
98
+ /**
99
+ * Returns an list of keys in the list
100
+ */
101
+ keys ( ) : IterableIterator < number > ;
102
+ /**
103
+ * Returns an list of values in the list
104
+ */
105
+ values ( ) : IterableIterator < TNode > ;
106
+
107
+ [ Symbol . iterator ] ( ) : IterableIterator < TNode > ;
108
+ }
109
+
110
+ interface URLSearchParams {
111
+ /**
112
+ * Returns an array of key, value pairs for every entry in the search params
113
+ */
114
+ entries ( ) : IterableIterator < [ string , string ] > ;
115
+ /**
116
+ * Returns a list of keys in the search params
117
+ */
118
+ keys ( ) : IterableIterator < string > ;
119
+ /**
120
+ * Returns a list of values in the search params
121
+ */
122
+ values ( ) : IterableIterator < string > ;
123
+ /**
124
+ * iterate over key/value pairs
125
+ */
126
+ [ Symbol . iterator ] ( ) : IterableIterator < [ string , string ] > ;
33
127
}
0 commit comments