bombshell-dev / clack

Effortlessly build beautiful command-line apps

Home Page:https://clack.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Typescript Select option value warning

TheMikeyRoss opened this issue · comments

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.

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.

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

any news ? :(

I'm facing this issue with:

  • node 20.17.0
  • typescript 5.5.4
  • prompts 0.7.0