A typed dialect of JavaScript.

Flow is now written in Rust 🦀 The migration from OCaml to Rust brought up to 2x faster type-checking on large codebases.
29
67
617
248,618
Most of the Rust port was done by a single engineer over ~8 months, while the rest of the team kept shipping features: no code freeze. Read the full story: medium.com/flow-type/flows-o…
6
5
79
24,636
Crashes at runtime - but TypeScript accepts it: zero errors under strict. Can you spot the bug?
17
5
98
29,778
TypeScript lets you pass Array<string> where Array<string | Error> is expected, so the function pushes an Error to your string array. Flow rejects it. TS Playground, 0 errors: typescriptlang.org/play/?#co… Flow Playground, rejects with an error: flow.org/try/#1N4Igxg9gdgZgl…
3
18
4,895
👀 Is this Flow, or TypeScript? Is Flow coming back? - Flow syntax aligns with TypeScript - Flow has pattern matching - Useful React hooks/component/renders syntax - Compiler has been recently ported to Rust I'll keep an eye on it for you, but this is promising!
JavaScript Pattern Matching with `match`, available now: medium.com/flow-type/javascr…
8
5
137
22,497
If your "Flow vs TypeScript" take is from 2021, it's out of date. Flow looks like TypeScript now - but it has pattern matching and React component syntax, while catching runtime crashes TypeScript waves through. Examples below. 👇
2
10
46
7,575
Another: TypeScript only validates the signature of a type-guard, not the body. Flow validates the body and rejects predicates that lie about what they check.
2
1
11
1,452
The render types section of the blog post doesn't even go all that in depth. This is contrived for the sake of conciseness but really pay attention to what this code is expressing and understand how buck wild it is that we can express this with complete type safety!
We added new language features to Flow for writing React. Learn about our new Component Syntax: medium.com/flow-type/announc…
1
2
20
4,788
We added new language features to Flow for writing React. Learn about our new Component Syntax: medium.com/flow-type/announc…
12
42
236
199,197