Flow uses type inference to find bugs even without type annotations. It precisely tracks the types of variables as they flow through your program.
Flow incrementally rechecks your changes as you work, preserving the fast feedback cycle of developing plain JavaScript.
>> flow status
>> flow check
Sometimes you’ll make a change that forces the Flow server to restart.
changes to your .flowconfig file
>> flow stop
>> flow init
Third-party libraries
Props and State
Missing @flow annotations
Flow will ignore it by making its type any
/* @flow weak */
npm install -g flow-typed
Primitives
any
The type is a supertype and subtype of all types.
mixed
is like a safe but somewhat annoying version of any
Optional types
T|void, for some type T
Maybe types
T|void|null, for some type T
Tuple types are a kind of array type particularly suited to describe finite, heterogeneous collections