mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
f9390ceb10
* switch to typescript * replace etcher-image-stream with etcher-sdk Change-type: patch
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;
|
|
}
|