Skip to content

Commit 0e08e6e

Browse files
authored
Merge pull request #15284 from HerringtonDarkholme/lib
fix #15243: add URLSearchParams to iterable
2 parents 8534b43 + ab7d5ee commit 0e08e6e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/lib/dom.iterable.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,22 @@ interface NodeListOf<TNode extends Node> {
7070

7171
[Symbol.iterator](): IterableIterator<TNode>;
7272
}
73+
74+
interface URLSearchParams {
75+
/**
76+
* Returns an array of key, value pairs for every entry in the search params
77+
*/
78+
entries(): IterableIterator<[string, string]>;
79+
/**
80+
* Returns a list of keys in the search params
81+
*/
82+
keys(): IterableIterator<string>;
83+
/**
84+
* Returns a list of values in the search params
85+
*/
86+
values(): IterableIterator<string>;
87+
/**
88+
* iterate over key/value pairs
89+
*/
90+
[Symbol.iterator](): IterableIterator<[string, string]>;
91+
}

0 commit comments

Comments
 (0)