For upgrading I used flow-upgrade module by https://yarnpkg.com/en/package/flow-upgrade
* Add next.js flowtype definition to with-flow * Add render api types for flow * Add prefetch types * Fix push/replace api types to promise
* added example with flow * Fixed linting errors