Skip to content

tetsuo/axios-fp-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axios-fp-ts

Example

import { toFuture } from 'axios-fp-ts/lib/future'
import { get } from 'axios-fp-ts/lib/client'
import * as t from 'io-ts'
import { expected } from 'axios-fp-ts/lib/expected'
import { fork } from 'fluture'

const program = toFuture(get('https://google.nl', expected(t.any)))

const log = fork(console.error)(console.log)

log(program)