3 ms·
Of note, Typescript is a heavy lift to add to, really port, an existing codebase. Flow can be sprinkled into an existing codebase easier if that's your goal. On
by mikeryan 6y ago
Of note, Typescript is a heavy lift to add to, really port, an existing codebase. Flow can be sprinkled into an existing codebase easier if that's your goal. Once you understand the way the types work (in particular Generics) they're somewhat interchangeable.
New codebases for us use Typescript, extending existing work we use Flow that can be backported in easier.
- polishdude20 6y agoOn the other side of this point, I've used typescript and converted a major project to use it and it was fairly simple. The main thing you should start with for low hanging fruit is database queries. Make sure your database query functions are typed and it'll make the rest of your code much easier to write even if the rest isn't in typescript. Start getting types into the places where the data is coming from. The source of the data.