0.2.1 • Published 3 years ago

fetch-decode v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

fetch-decode

fp-ts + io-ts + fetch

preproduction work in progress

Intent is to use io-ts to provide run time type checking for results from fetch requests in browser. Responses are returned in the fp-ts datatype TaskEither, which provides a useful layer around Promises, for more structured/reliable async code.

Runs inside of TaskEither monad.

Only useful with Typescript. Transpiled Javascript not included.

note: tests do not mock requests, instead they hit typicode.com and httpstat.us test sites. If those are down, tests will not run.

0.2.1

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago