From 7630326b4c5ed32377f34a6668beac626d5156ac Mon Sep 17 00:00:00 2001 From: Garrone Joseph Date: Wed, 20 May 2020 16:35:51 +0200 Subject: feat(std/node) Export TextDecoder and TextEncoder from util (#5663) --- std/node/_utils.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'std/node/_utils.ts') 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 | null; -- cgit v1.2.3