いい感じに

This commit is contained in:
syuilo 2017-03-02 17:16:55 +09:00
parent b1195e5bfd
commit 85f43b49cf
1 changed files with 15 additions and 17 deletions

View File

@ -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;