News for hackers. Stuff that matters.
Re:When to Use TypeScript – A Detailed Guide Through Common ... by bengale on Sunday April 07, 2019 @12:44PM (#19598006)
You don't need to rewrite to add types.
Re:When to Use TypeScript – A Detailed Guide Through Common ... by pault on Sunday April 07, 2019 @01:08PM (#19598201)
If you want type-safe code you will usually have to rewrite some parts of your app, or most of it if someone butchered the initial implementation.
Re:When to Use TypeScript – A Detailed Guide Through Common ... by daliusd on Sunday April 07, 2019 @12:50PM (#19598053)
In theory maybe you are right. In practice it never just adding types. E.g. you need to add null checks, rewrite old parts to follow same style (in case there are old parts in the code) and etc.
Re:When to Use TypeScript – A Detailed Guide Through Common ... by mixmastamyk on Sunday April 07, 2019 @01:54PM (#19598558)
This usually happens anyway when you figure out how to do something better. Then need to apply it everywhere else.