summaryrefslogtreecommitdiff
path: root/src/api/validator2.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/validator2.ts')
-rw-r--r--src/api/validator2.ts32
1 files changed, 15 insertions, 17 deletions
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;