from Hacker News

Announcing TypeScript 3.2

by DanRosenwasser on 11/29/18, 8:56 PM with 10 comments

  • by omeze on 11/30/18, 3:58 AM

    TypeScript is amazing. Not just from a feature point of view, but also from a tooling and usability point of view. The flexibility of tsconfig.json and the sheer volume of @types packages has allowed my workplace to introduce it to our core JS codebase over the past 2 years, with pretty much 0 hiccups. It's actually annoying hopping into Go and Python and not having such a powerful type system at my disposal.

    I'm not sure how the TS project itself is organized, but I wonder if the type system could be adapted to provide static types to other languages, like Python.

    As for 3.2, I'm happy to see the narrowing for tagged unions. I ran into a small annoyance with this a few weeks ago. Looking forward to variadic types in a future release!

  • by Waterluvian on 11/29/18, 11:17 PM

    Okay I'm finally ready to take a shot at TS.

    Any suggestions on the best guide for "incrementally, politely, unopinionatedly introducing TS to an existing JS web application"?

    Last time I gave it a shot I had to make a lot of changes upfront so I walked away from it.

  • by pscarey on 11/29/18, 10:44 PM

    It'll be interesting to see where TS goes over the next couple of years. They seen to have a short roadmap.

    The proposed @types scaffolding seems interesting for solving issues with untyped libraries. Maybe the focus will be how do we actually get all the code typed rather than resorting to 'any'.

    Side note, quite amusing: https://twitter.com/kitsonk/status/973651805950242816