mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
いい感じに
This commit is contained in:
parent
8ed36364d2
commit
990a19fa3a
@ -31,7 +31,7 @@ class ValidatorCore implements Validator {
|
|||||||
return [this.value, this.error];
|
return [this.value, this.error];
|
||||||
}
|
}
|
||||||
|
|
||||||
validate(validator: any) {
|
validate(validator: CustomValidator<any>) {
|
||||||
if (this.error || this.value === null) return this;
|
if (this.error || this.value === null) return this;
|
||||||
const result = validator(this.value);
|
const result = validator(this.value);
|
||||||
if (result === false) {
|
if (result === false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user