sheetra 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,13 @@ export declare class ExportBuilder {
5
5
  private currentSheet;
6
6
  constructor(sheetName?: string);
7
7
  addHeaderRow(headers: string[], style?: any): this;
8
- addDataRows(data: any[], fields?: string[]): this;
8
+ /**
9
+ * Add multiple data rows to the sheet
10
+ * @param data Array of row data
11
+ * @param fields Optional array of field names (for object data)
12
+ * @param styles Optional array of styles per row or per cell
13
+ */
14
+ addDataRows(data: any[], fields?: string[], styles?: (import('../types').CellStyle | import('../types').CellStyle[] | undefined)[]): this;
9
15
  addSection(config: SectionConfig): this;
10
16
  addSections(sections: SectionConfig[]): this;
11
17
  setColumnWidths(widths: number[]): this;
@@ -1222,7 +1222,13 @@ declare class ExportBuilder {
1222
1222
  private currentSheet;
1223
1223
  constructor(sheetName?: string);
1224
1224
  addHeaderRow(headers: string[], style?: any): this;
1225
- addDataRows(data: any[], fields?: string[]): this;
1225
+ /**
1226
+ * Add multiple data rows to the sheet
1227
+ * @param data Array of row data
1228
+ * @param fields Optional array of field names (for object data)
1229
+ * @param styles Optional array of styles per row or per cell
1230
+ */
1231
+ addDataRows(data: any[], fields?: string[], styles?: (CellStyle | CellStyle[] | undefined)[]): this;
1226
1232
  addSection(config: SectionConfig): this;
1227
1233
  addSections(sections: SectionConfig[]): this;
1228
1234
  setColumnWidths(widths: number[]): this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sheetra",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Powerful Excel/CSV/JSON export library with zero dependencies",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",