corde
Version:
A simple library for Discord bot tests
19 lines (18 loc) • 490 B
TypeScript
export declare class LogUpdate {
private _logValue;
private _stdout;
get stdout(): string;
constructor();
/**
* Add a data to the updatable log, returning the item position
* in the log.
* @param value New data to add to log.
*/
append(value: string): number;
appendLine(value: string): number;
update(index: number, newValue: string): void;
updateLine(index: number, newValue: string): void;
persist(): void;
private getlogValueString;
private print;
}