fix: add jsdoc comments

This commit is contained in:
Stevan Freeborn
2023-02-10 23:29:56 -06:00
parent 0af3a9d7ca
commit 287289b83f
3 changed files with 26 additions and 0 deletions
+16
View File
@@ -1,9 +1,25 @@
import { type Row } from './Row';
/**
* @class ReportData - Represents the data for a report.
*/
export class ReportData {
/**
* @property {string[]} columns - The columns in the report.
*/
public columns: string[];
/**
* @property {Row[]} rows - The rows in the report.
*/
public rows: Row[];
/**
* @constructor - Creates a new instance of ReportData.
* @param {string[]} columns - The columns in the report.
* @param {Row[]} rows - The rows in the report.
* @returns {ReportData} - A new instance of ReportData.
*/
constructor(columns: string[], rows: Row[]) {
this.columns = columns;
this.rows = rows;