mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-04 04:54:09 +00:00
27 lines
406 B
TypeScript
27 lines
406 B
TypeScript
|
declare module 'inquirer-dynamic-list' {
|
||
|
interface Choice {
|
||
|
name: string;
|
||
|
value: any;
|
||
|
}
|
||
|
|
||
|
class DynamicList {
|
||
|
opt: {
|
||
|
choices: {
|
||
|
choices: Choice[];
|
||
|
realChoices: Choice[];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
constructor(options: {
|
||
|
message?: string;
|
||
|
emptyMessage?: string;
|
||
|
choices: Choice[];
|
||
|
});
|
||
|
addChoice(choice: Choice): void;
|
||
|
render(): void;
|
||
|
run(): Promise<any>;
|
||
|
}
|
||
|
|
||
|
export = DynamicList;
|
||
|
}
|