diff --git a/src/index.ts b/src/index.ts index 4e9df15..3a3fe4f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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";