Giter Site home page Giter Site logo

Comments (2)

ajafff avatar ajafff commented on May 18, 2024 1

FWIW, I updated the dependency of TypeScript to >=2.8.0 in v3.0.0 of this library

from tsutils.

ajafff avatar ajafff commented on May 18, 2024

tsutils lists its TypeScript dependency as allowing 2.1 and up

Note that the version of TypeScript used to compile your project is not necessarily the version installed in node_modules (at design or run time).

From README.md:

This package is backwards compatible with typescript 2.1.0 at runtime although compiling might need a newer version of typescript installed.

Shipping declaration files for different versions of the compiler is not possible. Especially when adding utilities for newer TypeScript versions.

Compiling with [email protected] succeeds. And that's currently the lowest version I'm actively trying to make this library compatible with at compile time.


I agree it's a bit surprising this is now a syntax error which cannot be suppressed with skipLibCheck.

Can there be builds added that test with TypeScript at the lowest allowed version?

Sure. Feel free to submit a pull request that ensures the emitted declaration files are compatible with a certain version of TypeScript.

from tsutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.