Skip to content

[Bug] can't infer the input type when using results in p.group #131

Open
@tjx666

Description

@tjx666

Environment

  • OS: MacOS
  • Node Version: 18.16.0
  • Package: @clack/prompts
  • Package Version: 0.6.3

Describe the bug

just copy the example code, and check the type:

https://github.com/natemoo-re/clack/blob/main/examples/basic/index.ts#L31

image

To Reproduce

just use the basic example code

Expected behavior

project.type should be infered to type: string

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions