Skip to content

Commit

Permalink
Revert "docs imports"
Browse files Browse the repository at this point in the history
This reverts commit 603df65.
  • Loading branch information
osdiab authored and gcanti committed Aug 19, 2020
1 parent 943397b commit 8b29eb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const string = new t.Type<string, string, unknown>(
and we can use it as follows:

```ts
import { isRight } from 'fp-ts/Either'
import { isRight } from 'fp-ts/lib/Either'

isRight(string.decode('a string')) // true
isRight(string.decode(null)) // false
Expand All @@ -83,8 +83,8 @@ More generally the result of calling `decode` can be handled using [`fold`](http

```ts
import * as t from 'io-ts'
import { pipe } from 'fp-ts/pipeable'
import { fold } from 'fp-ts/Either'
import { pipe } from 'fp-ts/lib/pipeable'
import { fold } from 'fp-ts/lib/Either'

// failure handler
const onLeft = (errors: t.Errors): string => `${errors.length} error(s) found`
Expand Down

0 comments on commit 8b29eb0

Please sign in to comment.