flow-cookbook-hacker-news

Example that demonstrates type-checking API data with Flow

Usage no npm install needed!

<script type="module">
  import flowCookbookHackerNews from 'https://cdn.skypack.dev/flow-cookbook-hacker-news';
</script>

README

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