An fp-ts library to make it easy to work with fetch requests.
fp-ts
There are two main functions.
safeFetch('url') is equivalent to fetch('url').
safeFetch('url')
fetch('url')
safeFetchJson('url') is equivalent to fetch('url').then(res => res.json()).
safeFetchJson('url')
fetch('url').then(res => res.json())