summaryrefslogtreecommitdiff
path: root/std/node/_utils.ts
diff options
context:
space:
mode:
authorGarrone Joseph <joseph.garrone@ensimag.grenoble-inp.fr>2020-05-20 16:35:51 +0200
committerGitHub <noreply@github.com>2020-05-20 10:35:51 -0400
commit7630326b4c5ed32377f34a6668beac626d5156ac (patch)
treed69e81b76f908f7814600e764e7ee0b439751c93 /std/node/_utils.ts
parent9b4da88a96ce4c793e7b15d9b340fa6326a29a82 (diff)
feat(std/node) Export TextDecoder and TextEncoder from util (#5663)
Diffstat (limited to 'std/node/_utils.ts')
-rw-r--r--std/node/_utils.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/std/node/_utils.ts b/std/node/_utils.ts
index ec89d11a8..352179f4a 100644
--- a/std/node/_utils.ts
+++ b/std/node/_utils.ts
@@ -3,6 +3,12 @@ export function notImplemented(msg?: string): never {
throw new Error(message);
}
+export type _TextDecoder = typeof TextDecoder.prototype;
+export const _TextDecoder = TextDecoder;
+
+export type _TextEncoder = typeof TextEncoder.prototype;
+export const _TextEncoder = TextEncoder;
+
// API helpers
export type MaybeNull<T> = T | null;