Skip to content

Commit

Permalink
Updated wording in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed Jul 11, 2018
1 parent ba095b3 commit cf612d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ const data: Data = {
},
{
name: 'Validation',
description: 'This is a module that provides useful constructs for data validation. What makes it different than libraries that have a similar feature set is that the Validation module utilizes Either which makes it more pleasant to work with if your codebase is already using ADTs. The API is quite unopinionated making all kinds of use cases possible, from form validation to smart constructors. Although this module provides a wide variety of validation predicates, you can use any predicate you want.',
description: 'This is a module that provides useful constructs for data validation. What makes it different than libraries that have a similar feature set is that the Validation module utilizes Either which makes it more pleasant to work with if your codebase is already using ADTs. The API is quite unopinionated making all kinds of use cases possible, from form validation to smart constructors. Although this module provides a wide variety of validation predicates, you can use any predicates you want.',
example: {
import: `import { Validate, ifEmpty, ifJust, and, not, or ... } from 'pure-ts/utils/Validation'`
},
Expand All @@ -1042,8 +1042,8 @@ const data: Data = {
{input: `Validate.all('12333.34$', [
[ifEmpty, 'Please enter amount'],
[ifContains('$'), 'Currency cannot be USD'],
[ifLongerThan(4), 'Please enter smaller amount']
])`, output: `Left(['Currency cannot be USD', 'Please enter smaller amount'])`}
[ifLongerThan(4), 'Please enter lesser amount']
])`, output: `Left(['Currency cannot be USD', 'Please enter lesser amount'])`}
]
},
{
Expand Down

0 comments on commit cf612d5

Please sign in to comment.