Skip to content

Commit 2068b0a

Browse files
authored
URLSearchParams constructor: add overload to support iterables
Partially fixes microsoft#19806 /cc @mhegazy
1 parent a3ecfd8 commit 2068b0a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/lib.dom.iterable.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,10 @@ interface URLSearchParams {
133133
*/
134134
[Symbol.iterator](): IterableIterator<[string, string]>;
135135
}
136+
137+
declare var URLSearchParams: {
138+
/**
139+
* Constructor returning a URLSearchParams object.
140+
*/
141+
new (init?: string | URLSearchParams | Iterable<[string, string]>): URLSearchParams;
142+
};

0 commit comments

Comments
 (0)