isBoolean
isBooleanPossible errors:
If provided Verificable is not a boolean:
Verificable is not a boolean:{
type: "isBoolean",
path: [/* ... */]
}Examples:
const { asVerificable, isValid, isBoolean } = require("verifica");Null or undefined is not considered a boolean:
const verificable = asVerificable(null);
isValid(verificable, isBoolean); // falseString value is not considered a boolean as well:
const verificable = asVerificable("true");
isValid(verificable, isBoolean); // falsetrue and false are considered boolean values:
true and false are considered boolean values:Last updated