いい感じに

This commit is contained in:
syuilo⭐️ 2017-03-02 17:22:18 +09:00 committed by GitHub
parent 8ed36364d2
commit 990a19fa3a

View File

@ -31,7 +31,7 @@ class ValidatorCore implements Validator {
return [this.value, this.error];
}
validate(validator: any) {
validate(validator: CustomValidator<any>) {
if (this.error || this.value === null) return this;
const result = validator(this.value);
if (result === false) {