flow-cookbook-hacker-news

Example script to demonstrate type-checking API data with Flow

Stars
7

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