Re:Porting 30K lines of code from Flow to TypeScript
by lhorie on Monday January 14, 2019 @06:56PM
(#18907743)
My point is mostly that you can get away with explicitly typing less things in flow and still get similar levels of coverage. For example, consider this example:
Just a single type declaration is enough to let Flow catch the typo here. In TS, you'd also have to write the argument types for `digitize`. Importantly, if you wanted to explicitly add arg types for `digitize` w/ Flow, your editor can tell you what they are supposed to be.
[ Parent
| on HN ]