Skip to content

ArrayPromptOptions.choices should be (string | Choice)[], not string[] | Choice[] #202

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

choices: string[] | Choice[]

This means TypeScript will not allow you to use an array that contains both strings and Choices.

Did you mean that every item in the array must be string | Choice?:

`choices: (string | Choice)[]

I've verified on the CLI these seem to work in the latter way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions