facebook flow comment types

Developer from somewhere

Problem: you want to add flow, but you don’t want to complicate your build process.

Solution: use comment types.

const myInt /*: number */ = 10;
const someFnc = (param /*: number */) => {
  // do something
}