Dependency refactor #17

Merged
nomadjimbob merged 155 commits from dependency-refactor into main 2023-02-27 12:30:57 +00:00
Showing only changes of commit 7cfc24cf39 - Show all commits

View File

@@ -745,10 +745,11 @@ export function Required(
validate: function (value: string): ValidationResult {
return {
valid: value.length > 0,
invalidMessages:
invalidMessages: [
typeof this.invalidMessage === "string"
? this.invalidMessage
: this.invalidMessage(this),
],
};
},
};