Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt of select return value type is incorrect #237

Open
xjccc opened this issue Sep 14, 2023 · 2 comments
Open

prompt of select return value type is incorrect #237

xjccc opened this issue Sep 14, 2023 · 2 comments

Comments

@xjccc
Copy link
Contributor

xjccc commented Sep 14, 2023

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

@xjccc xjccc changed the title prompt of select return value is incorrect prompt of select return value type is incorrect Sep 14, 2023
@nopeless
Copy link

nopeless commented Oct 1, 2023

Ran into the same issue, thanks for PR

@NamesMT
Copy link

NamesMT commented Feb 26, 2024

Same issue, why haven't the repo release a new version yet :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants