Flow isn't TypeScript. Is there a reason the question is about the former (except for what looks like an afterthought) but tagged as the latter?