summaryrefslogtreecommitdiff
path: root/text-encoding.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'text-encoding.d.ts')
-rw-r--r--text-encoding.d.ts13
1 files changed, 10 insertions, 3 deletions
diff --git a/text-encoding.d.ts b/text-encoding.d.ts
index d86ee007f..b2ec9bc8f 100644
--- a/text-encoding.d.ts
+++ b/text-encoding.d.ts
@@ -1,3 +1,4 @@
+
// Type definitions for text-encoding
// Project: https://github.com/inexorabletash/text-encoding
// Definitions by: MIZUNE Pine <https://github.com/pine613>
@@ -49,10 +50,16 @@ declare namespace TextEncoding {
}
}
-declare var TextDecoder: TextEncoding.TextDecoderStatic;
-
-declare var TextEncoder: TextEncoding.TextEncoderStatic;
+/* Removed following lines to workaround this bug:
+ text-encoding.d.ts:52:13 - error TS2403: Subsequent variable declarations
+ must have the same type. Variable 'TextDecoder' must be of type '{ new
+ (label?: string, options?: TextDecoderOptions): TextDecoder; prototype:
+ TextDecoder; }', but here has type 'TextDecoderStatic'.
+ 52 declare var TextDecoder: TextEncoding.TextDecoderStatic;
+ */
+// declare var TextDecoder: TextEncoding.TextDecoderStatic;
+// declare var TextEncoder: TextEncoding.TextEncoderStatic;
declare var TextEncoding: TextEncoding.TextEncodingStatic;
declare module "text-encoding" {