A validate function
errors returned from validating TValue
StandardErrors available
including EMPTY and negated errors
negated error keys are prefixed by 'not' e.g. { notNull: true }
capitalise a string
Creates a frozen error object
when set will prefix the capitalised error key with 'not'
key value for an error e.g. { someKey: true }
value associated with the key e.g. { key: 'some value' }
a frozen error object
creates all standard errors
prefixes all capitalised keys with a 'not' e.g. { notNull: true }
standard errors
Checks an error object for errors optionally on a given path
normalises the errors object first
checks value is a date
deep equality check
checks values is a number or a string which can be parsed into a number
checks value is a string
normalize a validation result, by removing empty sub-properties
any result from a validation function
the result with empty sub-properties removed
Generated using TypeDoc
A validate function