mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 12:53:09 +02:00
いい感じに
This commit is contained in:
parent
b1195e5bfd
commit
85f43b49cf
1 changed files with 15 additions and 17 deletions
|
@ -79,25 +79,23 @@ class NumberValidator extends ValidatorCore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const it = (value) => {
|
const it = (value: any) => ({
|
||||||
return {
|
must: {
|
||||||
must: {
|
be: {
|
||||||
be: {
|
a: {
|
||||||
a: {
|
string: 0,
|
||||||
string: 0,
|
number: () => new NumberValidator(value),
|
||||||
number: () => new NumberValidator(value),
|
boolean: 0,
|
||||||
boolean: 0,
|
set: 0
|
||||||
set: 0
|
},
|
||||||
},
|
an: {
|
||||||
an: {
|
id: 0,
|
||||||
id: 0,
|
array: 0,
|
||||||
array: 0,
|
object: 0
|
||||||
object: 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
};
|
});
|
||||||
|
|
||||||
export default it;
|
export default it;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue