Skip to content

Commit a8e6b4a

Browse files
authored
Add valid init types to URLSearchParams constructor
See https://url.spec.whatwg.org/#interface-urlsearchparams Added sequence<sequence<USVString>> and record<USVString, USVString>. Fixes microsoft/TypeScript#15338
1 parent d15d05f commit a8e6b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inputfiles/addedTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
"kind": "interface",
183183
"name": "URLSearchParams",
184184
"constructorSignatures": [
185-
"new (init?: string | URLSearchParams): URLSearchParams"
185+
"new (init?: string | { [key: string]: string } | [string, string][] | URLSearchParams): URLSearchParams"
186186
],
187187
"methods": [
188188
{

0 commit comments

Comments
 (0)