isString
isStringPossible errors:
If provided Verificable is not a string:
Verificable is not a string:{
type: "isString",
path: [/* ... */]
}Examples:
const { asVerificable, isValid, isString } = require("verifica");Null or undefined is not considered a string:
const verificable = asVerificable(null);
isValid(verificable, isString); // falseNon-string values are not matching the predicate:
String value is matching the predicate:
Last updated