bombshell-dev / clack

Effortlessly build beautiful command-line apps
https://clack.cc
5.23k stars 88 forks source link

[Bug] MultiSelectOptions cursorAt not working, Select Missing this #193

Open Rar9 opened 1 month ago

Rar9 commented 1 month ago

Why is cursorAt not working for MultiSelectOptions?

any Why is maxItems misisng

and the otherway for SelectOptions

interface MultiSelectOptions<Options extends Option<Value>[], Value> {
    message: string;
    options: Options;
    initialValues?: Value[];
    required?: boolean;
    cursorAt?: Value;
}

interface SelectOptions<Options extends Option<Value>[], Value> {
    message: string;
    options: Options;
    initialValue?: Value;
    maxItems?: number;
}