1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-04-09 04:59:34 -05:00
This commit is contained in:
syuilo 2017-03-02 17:14:46 +09:00
parent f3d5c07ada
commit b1195e5bfd

View file

@ -15,6 +15,11 @@ class ValidatorCore implements Validator {
value: any;
error: string;
constructor() {
this.value = null;
this.error = null;
}
required() {
if (this.error === null && this.value === null) {
this.error = 'required';