diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-10-04 08:20:12 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-10-03 18:20:12 -0400 |
commit | 403bdfc3ec258a0dd3a5d03391d3dc32648f2bbe (patch) | |
tree | b44faa9ee55e5ac4b2fd0d3717cc3f84a51d7213 /js/dom_types.ts | |
parent | d9acc5b17e8bc465ec88f922876eecab5a72047c (diff) |
Fix iterators on UrlSearchParams (#3044)
Diffstat (limited to 'js/dom_types.ts')
-rw-r--r-- | js/dom_types.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/dom_types.ts b/js/dom_types.ts index a7c36df32..308505cf5 100644 --- a/js/dom_types.ts +++ b/js/dom_types.ts @@ -100,7 +100,7 @@ export interface ProgressEventInit extends EventInit { total?: number; } -export interface URLSearchParams { +export interface URLSearchParams extends DomIterable<string, string> { /** * Appends a specified key/value pair as a new search parameter. */ @@ -142,7 +142,7 @@ export interface URLSearchParams { * and invokes the given function. */ forEach( - callbackfn: (value: string, key: string, parent: URLSearchParams) => void, + callbackfn: (value: string, key: string, parent: this) => void, thisArg?: any ): void; } |