You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed errors to return input's type instead of static value label
Possibility to set property as optional (i.e. value can be undefined but not null)
Errors are now always returned as string[] instead of previous string or string[]. If there are no errors, array is just empty (instead of previous null)
Rewritten all resolvers to be 100% class-based
Made all resolvers immutable (nullable, optional, defaultsTo and constraint options)
Added CHANGELOG.md file
Bugfixes
Tuple now returns error if given input tuple has less or more places than expected
Fixed ITupleDefinition type
Fixed Tuple to return basic safe-valued tuple if provided input is not an array (previously it provided Result objects in all places where should be exact value)
Fixed NumberResolver to return NaN if not-nullable get null input (previously it was converting null to 0)