We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d55ade commit b24f90fCopy full SHA for b24f90f
src/utils/prompt.ts
@@ -148,7 +148,7 @@ export async function select<T>(
148
const defaultSuffix = options.defaultIndex ? ` (default: ${options.defaultIndex})` : ''
149
const prompt = `\nEnter number${defaultSuffix}: `
150
151
- return new Promise((resolve, reject) => {
+ return new Promise((resolve, _reject) => {
152
const askQuestion = () => {
153
rl.question(prompt, (answer) => {
154
const trimmed = answer.trim()
@@ -177,7 +177,7 @@ export async function select<T>(
177
rl.close()
178
resolve(selected)
179
} else {
180
- console.log(`Invalid selection`)
+ console.log('Invalid selection')
181
askQuestion()
182
}
183
})
0 commit comments