Skip to content

v0.5.2

Choose a tag to compare

@elliotdavies elliotdavies released this 15 Aug 10:51
· 41 commits to master since this release

Add the following functions:

  • fromPredicate to construct a validator from a predicate function
  • validateIsIn to validate whether a value is contained within an array of values
  • validateIsType to validate whether a value is of a given type
  • prefixErrors to simplify the most common use of mapErrors