We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The getTypeValidator function doesn't have a case for integer. As a result, invalid results are formatted in the same way as valid integers. Perhaps:
getTypeValidator
integer
const isValidInteger = (value) => Number.isInteger(value) && !Number.isNaN(value);