DefinitelyTyped/types/fast-text-encoding
inglec-arista ff77e86e11 fast-text-encoding: Fix global name collisions (#40630)
Global var definitions for TextDecoder and TextEncoder collide with the
globals defined by "lib.dom.d.ts". Ideally we would be able to
conditionally define TextDecoder and TextEncoder if they are not
already defined in the current context. Since we cannot do conditional
definitions in an ambient context, we export these types so the user
can do this themselves (see tests).

- Move global type definitions to namespace to prevent collisions with
  "lib.dom.d.ts" TextDecoder and TextEncoder.
- Update name of namespace from "fastTextEncoder" to "fastTextEncoding"
  to match package name.
- Update tests to manually define global vars TextDecoder and
  TextEncoder.
2019-11-26 14:30:35 -08:00
..
fast-text-encoding-tests.ts
index.d.ts
tsconfig.json
tslint.json