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

[Bug] Typescript Select option value warning #178

Open
TheMikeyRoss opened this issue Nov 21, 2023 · 4 comments
Open

[Bug] Typescript Select option value warning #178

TheMikeyRoss opened this issue Nov 21, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@TheMikeyRoss
Copy link

Environment

  • OS: Windows
  • Node Version: v18.17.0
  • Package:@clack/prompts
  • Package Version: v0.7.0

Describe the bug
a typescript warning for the value property of the options of the clack.select
image

To Reproduce
Include a link to a minimal reproduction using node.new

Steps to reproduce the behavior:

  • Include reproduction steps

Expected behavior
A clear and concise description of what you expected to happen.

Additional Information
If applicable, add screenshots to help explain your problem.

@TheMikeyRoss TheMikeyRoss added the bug Something isn't working label Nov 21, 2023
@Mist3rBru
Copy link
Contributor

Hello @TheMikeyRoss!

This error occurs because Typescript is using initialValue to set the option.value type. This was fixed by PR #102, and it is currently staged for release #149.

@thasmo
Copy link

thasmo commented May 12, 2024

@Mist3rBru, will the next version including this fix be released anytime soon? Thank you!

@brokuka
Copy link

brokuka commented Jun 22, 2024

any news ? :(

@charlyoleg2
Copy link

I'm facing this issue with:

  • node 20.17.0
  • typescript 5.5.4
  • prompts 0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants