Twitter | Pretraživanje | |
Nathan Shively-Sanders
Have you been looking for a low impact way to add Typescript? I wrote a tutorial:
This guide will show you how to upgrade to TypeScript without anybody noticing. Well, people might notice — what I really mean is that you won’t have to change your build at all. You’ll have the...
Reply Retweet Označi sa "sviđa mi se" More
Nathan Shively-Sanders 14. lip
Odgovor korisniku/ci @sanders_n
I use the tsconfig from the article every time I start a new JS project, so it's useful for new projects as well.
Reply Retweet Označi sa "sviđa mi se"
Kinrany 14. lip
Odgovor korisniku/ci @sanders_n
It'd be cool to view and edit JS files with JSDoc type annotations and separate .d.ts typings as if they were written in TS
Reply Retweet Označi sa "sviđa mi se"
Nathan Shively-Sanders 24. lip
Odgovor korisniku/ci @kinrany
The webpack people showed me a VS Code plugin that would display JSDoc in the same format as Typescript type annotations. But I can't find it online, so maybe it was just a demo? Not sure if that's what you are looking for anyway.
Reply Retweet Označi sa "sviđa mi se"
Tomáš Ječmen 14. lip
Odgovor korisniku/ci @sanders_n @typescript
Nice. We also tried combination of babel and ts-loader in webpack config. You can compile js with babel, ts with ts-loader and webpack will put everything to one bundle for you. You can migrate file by file during normal development.
Reply Retweet Označi sa "sviđa mi se"
David Foster 17. srp
Odgovor korisniku/ci @sanders_n @typescript @ts
I used a similar process for gaining -style type checking in my own JS codebase (~200 files, ~50k lines). -- However to avoid getting swamped with errors I started with checkJs=false and added "// -check" to JS files one-by-one.
Reply Retweet Označi sa "sviđa mi se"
Rune Jeppesen 14. lip
Odgovor korisniku/ci @sanders_n @typescript
Cool. I posted a question in the blog.
Reply Retweet Označi sa "sviđa mi se"
Yassine Chbani 14. lip
Reply Retweet Označi sa "sviđa mi se"
Daniel Schildt 16. lip
Odgovor korisniku/ci @sanders_n @typescript
Large part of what makes TypeScript effective is the ability to start using it incrementally. Most companies don't want to switch to new tools unless there is a visible proof that it helps with their existing applications. Step by step, improving documentation etc. allows that.
Reply Retweet Označi sa "sviđa mi se"