diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-11 17:19:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 17:19:36 -0400 |
commit | 637a9ecd6a3f3311601b4de36f6035ae63297f77 (patch) | |
tree | 291cf38b77bf2709b538fb4918d753c05511e1f1 /cli/js/web/dom_util.ts | |
parent | da28fc1e7b4551281ad14d49c7fb396010ba0107 (diff) |
dedup URLSearchParams, URL, Location, DOMStringList (#4719)
Diffstat (limited to 'cli/js/web/dom_util.ts')
-rw-r--r-- | cli/js/web/dom_util.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/js/web/dom_util.ts b/cli/js/web/dom_util.ts index d12593e8e..4b9ce3f50 100644 --- a/cli/js/web/dom_util.ts +++ b/cli/js/web/dom_util.ts @@ -1,8 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import * as domTypes from "./dom_types.d.ts"; - -export function getDOMStringList(arr: string[]): domTypes.DOMStringList { +export function getDOMStringList(arr: string[]): DOMStringList { Object.defineProperties(arr, { contains: { value(searchElement: string): boolean { @@ -16,5 +14,5 @@ export function getDOMStringList(arr: string[]): domTypes.DOMStringList { }, }, }); - return arr as string[] & domTypes.DOMStringList; + return arr as string[] & DOMStringList; } |