playwright-performance-reporter
Version:
Measure and publish performance metrics from browser dev-tools when running playwright
43 lines (42 loc) • 900 B
TypeScript
import { type JsonWriter, type OptionsFileWrite } from '../types/index.js';
/**
* Write JSON chunks in an array of entries
*/
export declare class JsonChunkWriter implements JsonWriter {
/**
* Locator where to store the output
*/
private filePath;
/**
* Status whether writer is usable
*/
private isClosed;
/**
* File writer
*/
private fileStream;
/**
* JSON chunk writer
*/
private readonly jsonStream;
/**
* Initialize writer
*
* @param options defines target output
*/
initialize(options: OptionsFileWrite): void;
/**
* Create new entry of an object, that is serializable.
*
* @param content
*/
write(content: Record<any, any>): boolean;
/**
* Finish json stream
*/
close(): void;
/**
* Delete created file
*/
delete(): boolean;
}