mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-04 07:26:29 +09:00
typo
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user