1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 13:48:28 +09:00
This commit is contained in:
syuilo⭐️ 2017-03-02 06:25:05 +09:00 committed by GitHub
parent f3f5869f52
commit d009286b51

View File

@ -42,7 +42,7 @@ function validate<T>(value: any, type: Type, isRequired?: boolean, validator?: V
case 'boolean': case 'boolean':
if (typeof value != 'boolean') { if (typeof value != 'boolean') {
return [null, 'must-be-an-boolean']; return [null, 'must-be-a-boolean'];
} }
break; break;
@ -62,7 +62,7 @@ function validate<T>(value: any, type: Type, isRequired?: boolean, validator?: V
case 'object': case 'object':
if (typeof value != 'object') { if (typeof value != 'object') {
return [null, 'must-be-an-onject']; return [null, 'must-be-an-object'];
} }
break; break;
} }