react-moment-proptypes icon indicating copy to clipboard operation
react-moment-proptypes copied to clipboard

Updated validator type DAG to allow for single-use of subtype

Open CalebMorris opened this issue 3 years ago • 1 comments

Before it was requiring you to resolve usage from one direction.

Now works with all use-cases:

  • validator.isRequired.withPredicate(fn)
  • validator.isRequired
  • validator.withPredicate(fn).isRequired
  • validator.withPredicate(fn)
  • validator

CalebMorris avatar Mar 26 '21 04:03 CalebMorris

Coverage Status

Coverage remained the same at 100.0% when pulling c04cd9130ac9d8a32b2d0ac9810cedbbda3dd46e on fix-type-dag into 89a61c17250ea7b71d55d2855f6739ae4071529a on master.

coveralls avatar Mar 26 '21 04:03 coveralls