From 92e97bca41266df17a5c305e1633c3060e23d26f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 27 May 2018 14:15:22 -0400 Subject: workaround text-encoding bug --- text-encoding.d.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'text-encoding.d.ts') 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 @@ -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" { -- cgit v1.2.3