From a8e6b4af5b44247b65b372fd6dd30bc139849090 Mon Sep 17 00:00:00 2001 From: Jacob Rask Date: Mon, 19 Jun 2017 10:47:22 +0200 Subject: [PATCH] Add valid init types to URLSearchParams constructor See https://url.spec.whatwg.org/#interface-urlsearchparams Added sequence> and record. Fixes https://github.com/Microsoft/TypeScript/issues/15338 --- inputfiles/addedTypes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index 4d1536f52..3d57ecb67 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -182,7 +182,7 @@ "kind": "interface", "name": "URLSearchParams", "constructorSignatures": [ - "new (init?: string | URLSearchParams): URLSearchParams" + "new (init?: string | { [key: string]: string } | [string, string][] | URLSearchParams): URLSearchParams" ], "methods": [ {