You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
599 B
TypeScript
19 lines
599 B
TypeScript
import { Separator, type Theme } from '@inquirer/core';
|
|
import type { PartialDeep } from '@inquirer/type';
|
|
type Choice<Value> = {
|
|
value: Value;
|
|
name?: string;
|
|
short?: string;
|
|
key?: string;
|
|
};
|
|
declare const _default: <Value>(config: {
|
|
message: string;
|
|
choices: readonly (string | Separator)[] | readonly (Separator | Choice<Value>)[];
|
|
loop?: boolean | undefined;
|
|
theme?: PartialDeep<Theme> | undefined;
|
|
}, context?: import("@inquirer/type").Context) => Promise<Value> & {
|
|
cancel: () => void;
|
|
};
|
|
export default _default;
|
|
export { Separator } from '@inquirer/core';
|