Sylvain Filoni
update gradio client
9ada4bc
raw
history blame
473 Bytes
import chalk from 'chalk';
import figures from '@inquirer/figures';
/**
* Separator object
* Used to space/separate choices group
*/
export class Separator {
separator = chalk.dim(Array.from({ length: 15 }).join(figures.line));
type = 'separator';
constructor(separator) {
if (separator) {
this.separator = separator;
}
}
static isSeparator(choice) {
return Boolean(choice && choice.type === 'separator');
}
}