diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-23 11:44:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-23 11:44:08 -0500 |
commit | 6cc998f28bb1cf119ca96bac385c7361bc1f7021 (patch) | |
tree | d5fb8f0da5c79fa14afc814ea85cf1c9134eb714 /js/globals.ts | |
parent | bee55fcd20b4919f2d6b4817ce33d1a09e6bcadc (diff) |
Remove support for extensionless import (#1396)
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/js/globals.ts b/js/globals.ts index ac66f77e6..efa377e9b 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -10,7 +10,6 @@ import * as blob from "./blob"; import * as consoleTypes from "./console"; import * as domTypes from "./dom_types"; -import * as file from "./file"; import * as formData from "./form_data"; import * as fetchTypes from "./fetch"; import * as headers from "./headers"; @@ -55,8 +54,13 @@ window.setInterval = timers.setInterval; // being used, which it cannot statically determine within this module. window.Blob = blob.DenoBlob; export type Blob = blob.DenoBlob; -window.File = file.DenoFile; -export type File = file.DenoFile; + +// TODO(ry) Do not export a class implementing the DOM, export the DOM +// interface. See this comment for implementation hint: +// https://github.com/denoland/deno/pull/1396#discussion_r243711502 +// window.File = file.DenoFile; +// export type File = file.DenoFile; + window.URL = url.URL; export type URL = url.URL; window.URLSearchParams = urlSearchParams.URLSearchParams; |