diff --git a/src/api/validator2.ts b/src/api/validator2.ts
index a1c5ba164b..923f102e42 100644
--- a/src/api/validator2.ts
+++ b/src/api/validator2.ts
@@ -79,25 +79,23 @@ class NumberValidator extends ValidatorCore {
 	}
 }
 
-const it = (value) => {
-	return {
-		must: {
-			be: {
-				a: {
-					string: 0,
-					number: () => new NumberValidator(value),
-					boolean: 0,
-					set: 0
-				},
-				an: {
-					id: 0,
-					array: 0,
-					object: 0
-				}
+const it = (value: any) => ({
+	must: {
+		be: {
+			a: {
+				string: 0,
+				number: () => new NumberValidator(value),
+				boolean: 0,
+				set: 0
+			},
+			an: {
+				id: 0,
+				array: 0,
+				object: 0
 			}
 		}
-	};
-};
+	}
+});
 
 export default it;