clack icon indicating copy to clipboard operation
clack copied to clipboard

[Bug] Typescript Select option value warning

Open TheMikeyRoss opened this issue 1 year ago • 4 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.

TheMikeyRoss avatar Nov 21 '23 19:11 TheMikeyRoss

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 avatar Nov 22 '23 14:11 Mist3rBru

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

thasmo avatar May 12 '24 18:05 thasmo

any news ? :(

brokuka avatar Jun 22 '24 10:06 brokuka

I'm facing this issue with:

  • node 20.17.0
  • typescript 5.5.4
  • prompts 0.7.0

charlyoleg2 avatar Aug 29 '24 05:08 charlyoleg2