deno fmt
This commit is contained in:
@@ -3,11 +3,11 @@ import { Validator, Args } from "../mod.ts";
|
||||
export const isString: Validator = {
|
||||
type: "isString",
|
||||
check: (value: any) => {
|
||||
if (typeof value !== 'string' && !(value instanceof String)) {
|
||||
if (typeof value !== "string" && !(value instanceof String)) {
|
||||
return {};
|
||||
}
|
||||
},
|
||||
message: (value: any, args?: Args) => {
|
||||
return `The value '${value && value.toString()}' has to be a string.`
|
||||
}
|
||||
}
|
||||
return `The value '${value && value.toString()}' has to be a string.`;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user