@gud/cli
    Preparing search index...

    Type Alias PromptParams<T, TOptionType>

    PromptParams: Replace<
        Omit<PromptObject, "name" | "separator">,
        {
            choices?: Replace<Choice, { value?: OptionPrimitiveType<TOptionType> }>[];
            message: NonNullable<prompts.PromptObject["message"]>;
            type?: T;
        },
    >

    A variation of PromptObject with a few changes:

    • PromptObject.type type is optional and defaults to 'text'.
    • PromptObject.message message is required.
    • PromptObject.name name is always 'value'.
    • PromptObject.separator separator is always ','.

    Type Parameters