diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-27 14:15:22 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-27 14:20:23 -0400 |
commit | 92e97bca41266df17a5c305e1633c3060e23d26f (patch) | |
tree | e21f3e866cb8df84cc60778b096106cb38b5e947 /text-encoding.d.ts | |
parent | bbcdc9b488b0674bb424b3eb58a8586c4d73f9bd (diff) |
workaround text-encoding bug
Diffstat (limited to 'text-encoding.d.ts')
-rw-r--r-- | text-encoding.d.ts | 13 |
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" { |