Skip to main content

Class: RecordReader

Constructors

new RecordReader()

new RecordReader(): RecordReader

Returns

RecordReader

Methods

bulkReadRecords()

static bulkReadRecords(files): AsyncIterable<ReportRecord, any, any>

Reads ReportRecord instances from multiple files.

Parameters

files: string[]

An array of filenames to be read.

Returns

AsyncIterable<ReportRecord, any, any>

Defined in

src/utils/json/RecordReader.ts:26


readRecords()

static readRecords(filename): AsyncIterable<ReportRecord, any, any>

Asynchronously reads ReportRecord instances from a given JSON file.

Parameters

filename: string

Path of the file to be read.

Returns

AsyncIterable<ReportRecord, any, any>

Defined in

src/utils/json/RecordReader.ts:11