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

React proptype validator for moment.js

Results 4 react-moment-proptypes issues
Sort by recently updated
recently updated
newest added

Currently, any validator will use the type `T | null | undefined`, even if `isRequired` is used. (as covered in #51) The way I encountered this issue was using the...

I was still having issues with incorporating this. Inspired by [airbnb's prop-type definitions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/airbnb-prop-types/index.d.ts) I think that all you need to do is wrap the type with `Requireable` from PropTypes. I...

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

This library depends on moment.js both as a direct dependency and as a peer dependency. Because react-dates has picked this library up a consuming application will end up with two...