Interestingly, both flow and typescript have roots in OCaml/F# respectively. Flow was written in OCaml and the creator of Typescript was on the F# team at Microsoft.
I actually think the bigger driver for TypeScript was Anders' history of working on C# and Delphi before that.