summaryrefslogtreecommitdiff
path: root/js/text-encoding.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/text-encoding.d.ts')
-rw-r--r--js/text-encoding.d.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/text-encoding.d.ts b/js/text-encoding.d.ts
new file mode 100644
index 000000000..6feadad9c
--- /dev/null
+++ b/js/text-encoding.d.ts
@@ -0,0 +1,6 @@
+// Remove and depend on @types/text-encoding once this PR is merged
+// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/26141
+declare module "text-encoding" {
+ export const TextEncoder: TextEncoder;
+ export const TextDecoder: TextDecoder;
+}