fix: use integer check which doesn't require value to be 32 bit
This commit is contained in:
parent
6075e846d3
commit
f1b61cf6f1
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export function convertInputType(value, type) {
|
|||
}
|
||||
return value;
|
||||
case 'integer':
|
||||
if (typeof value === 'number' && (value | 0) === value) {
|
||||
if (typeof value === 'number' && Number.isInteger(value)) {
|
||||
return value;
|
||||
} else {
|
||||
throw new Error("Can't convert to integer: " + JSON.stringify(value));
|
||||
|
|
Loading…
Reference in a new issue