unjs / consola

🐨 Elegant Console Logger for Node.js and Browser
Other
6.12k stars 175 forks source link

prompt of select return value type is incorrect #237

Open xjccc opened 1 year ago

xjccc commented 1 year ago

Environment

consola: v3.2.3

Reproduction

types error

Describe the bug

await consola.prompt('select a template', {
  type: 'select',
  options:[{label: 'template', value: 'template'}]
})

the return value should be string

but i got the SelectOption

Additional context

image

Logs

No response

nopeless commented 1 year ago

Ran into the same issue, thanks for PR

NamesMT commented 8 months ago

Same issue, why haven't the repo release a new version yet :( (PR is merged but there is no patch version for it is what I meant)

vorant94 commented 5 months ago

why is there still no patch version?(((

pi0 commented 5 months ago

sorry for delay on releasing it will be added with new release soon.