summaryrefslogtreecommitdiff
path: root/js/globals.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/globals.ts')
-rw-r--r--js/globals.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/globals.ts b/js/globals.ts
index 6f29d97d4..cf45b4239 100644
--- a/js/globals.ts
+++ b/js/globals.ts
@@ -29,8 +29,6 @@ import { libdeno } from "./libdeno";
declare global {
const console: consoleTypes.Console;
const setTimeout: typeof timers.setTimeout;
- // tslint:disable-next-line:variable-name
- const TextEncoder: typeof textEncoding.TextEncoder;
}
// A reference to the global object.
@@ -69,7 +67,7 @@ export type Headers = domTypes.Headers;
window.FormData = formData.FormData as domTypes.FormDataConstructor;
export type FormData = domTypes.FormData;
-// While these are classes, they have their global instance types created in
-// other type definitions, therefore we do not have to include them here.
window.TextEncoder = textEncoding.TextEncoder;
+export type TextEncoder = textEncoding.TextEncoder;
window.TextDecoder = textEncoding.TextDecoder;
+export type TextDecoder = textEncoding.TextDecoder;