I Was Wrong About TypeScript
triplet.fi
I Was Wrong About TypeScript
1–10 of 194 posts
Re: I Was Wrong About TypeScript
#2Re: I Was Wrong About TypeScript
#3This two tools are amazing and it improves working with JavaScript to the point of never wanting to go back to not typed JavaScript
Re: I Was Wrong About TypeScript
#4Re: I Was Wrong About TypeScript
#5Re: I Was Wrong About TypeScript
#6At the same time, you're gonna need to use some preexisting libraries, and run into the issue of not having types available. (though they do exist for most mainstream libs) However, I found creating types for any given lib pretty flexible, and that you can usually get away with just enough types.
Re: I Was Wrong About TypeScript
#7Re: I Was Wrong About TypeScript
#8Re: I Was Wrong About TypeScript
#9Another good alternative is Facebook's flow. Rather than being a transpired language it works on top of JavaScript files. This two tools are amazing and it improves working with JavaScript to the point of never wanting to go back to not typed JavaScript
One thing I would like to add regarding the .js files, TypeScript 1.8 added a flag --allowJs which makes some sanity checks to the plain old .js files.
Re: I Was Wrong About TypeScript
#10I recently started learning TS after reading a previous HN post on it ( https://medium.com/@basarat/typescript-won-a4e0dfde4b08 ) and listening to the JS Jabber episode with Anders Hejlsberg himself explaining the benefits ( https://devchat.tv/js-jabber/209-jsj-typescript-with-anders-... ). These two (plus knowing that Angular 2.0 is going to be much easier with TX) totally sold me on learning it. I'm in the middle o…