summaryrefslogtreecommitdiff
path: root/js/text-encoding.d.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-06 11:20:35 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-06 12:22:11 -0400
commitfe404dfce901356dc7a5d38ba70029c72a946f27 (patch)
treeb8ed0d3417e920da1fd4e6278046184d8205a237 /js/text-encoding.d.ts
parent21e1425656ccebb8d31da95acd83991fb7d728fd (diff)
Import ts file from prototype without change
From commit 559453cf6cc88283bcf8fdeccd387458f5c63165 Excluding v8worker.d.ts, main.ts, and deno.d.ts. Updates tslint.json to be original settings.
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;
+}