Skip to content

TypeScript compatibility notes #7

@smikitky

Description

@smikitky

Due to the recent updates of both TypeScript and multi-integer-range, those who use TypeScript to build your own project may run into compatibility issues.

Here's the summary:

  • If you are not using TypeScript in your own project, forget this issue. This library works fine with vanilla JS, Babel, CoffeeScript, etc. (Otherwise please let me know!)
  • Regardless of whether you want to enable --strictNullChecks, you need to update your TypeScript to 2.0.x before upgrading this library to 3.0.x. If you want to stay in TypeScript <= 1.8.x for a little longer, feel free to keep using multi-integer-range 2.0.x, which has no known major bugs.
  • Regardless of the TypeScript version, do not use ES6 iterator (eg, for-of, spread operator) if your project is --target=es5. Down-level transformation works only with plain arrays.
  • Regardless of the TypeScript version, add the snippet in README somewhere in your project if your project is --target=es6 and uses ES6 iterator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions