feat: document export functions

This commit is contained in:
Ahmed Bouhuolia
2024-06-02 13:24:21 +02:00
parent f15fecde54
commit 1b237323f6
2 changed files with 9 additions and 9 deletions

View File

@@ -12,12 +12,12 @@ export class ExportPdf {
private chromiumlyTenancy: ChromiumlyTenancy;
/**
*
* @param tenantId
* @param columns
* @param data
* @param sheetTitle
* @param sheetDescription
* Generates the pdf table sheet for the given data and columns.
* @param {number} tenantId
* @param {} columns
* @param {Record<string, string>} data
* @param {string} sheetTitle
* @param {string} sheetDescription
* @returns
*/
public async pdf(

View File

@@ -27,9 +27,9 @@ export const getDataAccessor = (col: any) => {
};
/**
*
* @param columns
* @param data
* Maps the data retrieved from the service layer to the pdf document.
* @param {any} columns
* @param {Record<stringm any>} data
* @returns
*/
export const mapPdfRows = (columns: any, data: Record<string, any>) => {