This commit is contained in:
TienLeok Ngo 2019-10-22 17:44:31 +08:00 committed by GitHub
parent ef10b8653a
commit 896698a9d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,7 +334,7 @@ async function GetUtilParametersByInquirer() {
const { timeout } = (await inquirer.prompt({
message: "Query timeout(ms):",
name: "timeout",
type: "input",
type: "number",
validate(value) {
const valid = !Number.isNaN(parseInt(value, 10));
return valid || "Please enter a valid number";