Example script to demonstrate type-checking API data with Flow
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Add explanatory comment to index.js Dec 28, 2017
.flowconfig initial commit Dec 15, 2016
.gitignore
Makefile Move source files to `src/`, generated files are put in `lib/` Nov 24, 2017
README.md
package.json Update Babel configuration to use `env` preset Nov 24, 2017
yarn.lock

README.md

hacker-news-example

Example script to demonstrate type-checking API data with Flow. This is example code from the article Flow Cookbook: Unpacking JSON API data.

Source code is in index.js.flow.

Requires yarn

Install project dependencies before running the code or running the type checker:

yarn install

To run the code:

yarn start

To run Flow type-checking:

yarn run flow