Open d-eisenga opened 1 year ago
The documentation for fromNewtype only shows how to use it with an alias for t.string, i.e. a type that doesn't have a custom type predicate. It's entirely unclear how to use it with e.g. the NonNegative newtype, which has a custom predicate.
fromNewtype
NonNegative
📖 Documentation
The documentation for
fromNewtype
only shows how to use it with an alias for t.string, i.e. a type that doesn't have a custom type predicate. It's entirely unclear how to use it with e.g. theNonNegative
newtype, which has a custom predicate.