mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
typo
This commit is contained in:
parent
c51bb74ff9
commit
b0c2cc2bf4
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ function validate<T>(value: any, type: Type, isRequired?: boolean, validator?: V
|
|||
|
||||
case 'boolean':
|
||||
if (typeof value != 'boolean') {
|
||||
return [null, 'must-be-an-boolean'];
|
||||
return [null, 'must-be-a-boolean'];
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -62,7 +62,7 @@ function validate<T>(value: any, type: Type, isRequired?: boolean, validator?: V
|
|||
|
||||
case 'object':
|
||||
if (typeof value != 'object') {
|
||||
return [null, 'must-be-an-onject'];
|
||||
return [null, 'must-be-an-object'];
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue