Skip to content

Commit e8d3262

Browse files
committed
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#15338
1 parent a277664 commit e8d3262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/lib.dom.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13916,7 +13916,7 @@ declare var URLSearchParams: {
1391613916
/**
1391713917
* Constructor returning a URLSearchParams object.
1391813918
*/
13919-
new (init?: string | URLSearchParams): URLSearchParams;
13919+
new (init?: string | { [key: string]: string } | [string, string][] | URLSearchParams): URLSearchParams;
1392013920
}
1392113921

1392213922
interface NodeListOf<TNode extends Node> extends NodeList {
@@ -15053,4 +15053,4 @@ type ServiceWorkerState = "installing" | "installed" | "activating" | "activated
1505315053
type Transport = "usb" | "nfc" | "ble";
1505415054
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
1505515055
type VisibilityState = "hidden" | "visible" | "prerender" | "unloaded";
15056-
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
15056+
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";

0 commit comments

Comments
 (0)