microvium
Version:
A compact, embeddable scripting engine for microcontrollers for executing small scripts written in a subset of JavaScript.
20 lines (19 loc) • 640 B
TypeScript
export declare type LazyString = (...state: any[]) => string;
export declare class TraceFile {
private automaticFlushDelayMs;
static all: Set<TraceFile>;
private buffer;
private filename;
private nextFlushThreshold;
private dumpContent?;
private globalConstructor;
static get flushAll(): string;
constructor(filename: string, automaticFlushDelayMs?: number);
dispose(): void;
flush(): void;
private checkFlush;
get flushAll(): string;
write(content: string): void;
writeLine(line: string): void;
dump(content: string | LazyString, ...state: any[]): void;
}