Giter Club home page Giter Club logo

Comments (4)

whxaxes avatar whxaxes commented on August 14, 2024

TS 这种升 minor 都会有 breaking change 的,TS 版本一般都是建议直接往上升,大部分都是兼容的。不兼容的类型问题就修复一下就行了

from egg-ts-helper.

JackyM06 avatar JackyM06 commented on August 14, 2024

嗯嗯,感谢解答。我目前的办法是锁了egg-bin、和egg-ts-helper的版本,"egg-bin": "4.16.1","egg-ts-helper": "1.25.8", 暂时没有出现问题了,升级改动的成本有点大,这次ts升级了catch error的强制unknow类型,影响范围还是比较大的

from egg-ts-helper.

whxaxes avatar whxaxes commented on August 14, 2024

@JackyM06 改动不大的,如果接受不了 unknown 类型,在 tsconfig.json 里的 compilerOption 配一下 "useUnknownInCatchVariables": false

from egg-ts-helper.

whxaxes avatar whxaxes commented on August 14, 2024

不建议锁 ts 版本,不然你这个项目估计永远都不会去升级

from egg-ts-helper.

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.