I use the tsconfig from the article every time I start a new JS project, so it's useful for new projects as well.
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
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
-
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.
- 1 more reply
New conversation -
-
-
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.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I used a similar process for gaining
#TypeScript-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 "//@ts-check" to JS files one-by-one.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Cool. I posted a question in the blog.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
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.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.