@@ -215,7 +215,7 @@ declare type ConditionalFormattingTopOperation = "belowAverage" | "aboveAverage"
215
215
* @param {boolean } [config.keepStyle] - Whether to keep the style.
216
216
* @param {RowHeightScaleFunction } [config.rowHeightScaleFunction] - The function to scale row height.
217
217
* @param {ColWidthScaleFunction } [config.colWidthScaleFunction] - The function to scale column width.
218
- * @returns {Promise<ExcelTable > } The generated Excel table.
218
+ * @returns {Promise<string | number[] | Blob | DataModel.Buffer | undefined > } The generated Excel table.
219
219
*/
220
220
export declare function convertTableToExcel ( queryForTable ?: string , table ?: HTMLTableElement , config ?: {
221
221
keepStyle ?: boolean ;
@@ -396,8 +396,8 @@ export declare function excelToJson(uri: string, fetchFunc?: Function, withHeade
396
396
* @param {string } uri - The URI of the Excel file.
397
397
* @param {string | null } [queryForTable] - The query selector for the table.
398
398
* @param {HTMLDivElement | null } [containerElement] - The container element.
399
- * @param {ExcelToNodeConfig } [config={} ] - The configuration options.
400
- * @returns {Promise<void > } The result of the conversion.
399
+ * @param {ExcelToNodeConfig } [config=defaultConfig ] - The configuration options.
400
+ * @returns {Promise<HTMLTableElement[] | "Done" > } The result of the conversion.
401
401
*/
402
402
export declare function excelToNode ( uri : string , queryForTable ?: string | null , containerElement ?: HTMLDivElement | null , config ?: ExcelToNodeConfig ) : Promise < HTMLTableElement [ ] | "Done" > ;
403
403
@@ -436,7 +436,7 @@ declare type ExtractedData = (string | null | undefined)[][];
436
436
* @param {string } uri - The URI of the Excel file.
437
437
* @param {boolean } [isBackend=false] - Whether the extraction is done on the backend.
438
438
* @param {Function } [fetchFunc] - The function to fetch data.
439
- * @returns {Promise<ExtractResult > } The extracted data.
439
+ * @returns {Promise<DataModel.ReadResult > } The extracted data.
440
440
*/
441
441
export declare function extractExcelData ( uri : string , isBackend ?: boolean , fetchFunc ?: Function ) : Promise < DataModel . ReadResult > ;
442
442
@@ -487,20 +487,20 @@ declare type FormulaType = "AVERAGE" | "SUM" | "COUNT" | "MAX" | "MIN";
487
487
declare function generalValidationCheck ( value : never , validateProperty : ValidationObject , property : string , strict : boolean , warn : boolean ) : boolean ;
488
488
489
489
/**
490
- * Generates a CSV file from an Excel table.
490
+ * Generates a CSV file from an Excel table Object .
491
491
* @param {ExcelTable } excelTable - The Excel table.
492
492
* @param {boolean } [asZip=false] - Whether to generate the CSV as a ZIP file.
493
- * @returns {Promise<Blob > } The generated CSV file.
493
+ * @returns {Promise<string[] | "done" | undefined > } The generated CSV file.
494
494
*/
495
495
export declare function generateCSV ( excelTable : ExcelTable , asZip ?: boolean ) : Promise < string [ ] | "done" | undefined > ;
496
496
497
497
export declare function generateExcel ( data : ExcelTable , styleKey ?: string ) : Promise < string | number [ ] | Blob | Buffer_2 | undefined > ;
498
498
499
499
/**
500
- * Generates a text file from an Excel table.
500
+ * Generates a text file from an Excel table Object .
501
501
* @param {ExcelTable } excelTable - The Excel table.
502
502
* @param {boolean } [asZip=false] - Whether to generate the text file as a ZIP file.
503
- * @returns {Promise<Blob > } The generated text file.
503
+ * @returns {Promise<string[] | "done" | undefined > } The generated text file.
504
504
*/
505
505
export declare function generateText ( excelTable : ExcelTable , asZip ?: boolean ) : Promise < string [ ] | "done" | undefined > ;
506
506
@@ -891,7 +891,7 @@ declare interface SideBySide {
891
891
/**
892
892
* Generates an Excel file with side-by-side data.
893
893
* @param {SideBySide[][] } data - The side-by-side data.
894
- * @returns {Promise<ExcelTable > } The generated Excel table.
894
+ * @returns {Promise<string | number[] | Blob | DataModel.Buffer | undefined > } The generated Excel table.
895
895
*/
896
896
export declare function sideBySideLineByLine ( data : SideBySide [ ] [ ] ) : Promise < string | number [ ] | DataModel . Buffer | Blob | undefined > ;
897
897
@@ -1021,7 +1021,7 @@ declare type StyleType = "conditionalFormatting" | "CF" | "headerFooter" | "HF";
1021
1021
* Generates an Excel file with a theme.
1022
1022
* @param {ExcelTable | Data[] | Data[][] } data - The data for the Excel file.
1023
1023
* @param {ThemeOption } [option] - The theme options.
1024
- * @returns {Promise<ExcelTable > } The generated Excel table.
1024
+ * @returns {Promise<string | number[] | Blob | DataModel.Buffer | undefined > } The generated Excel table.
1025
1025
*/
1026
1026
export declare function themeBaseGenerate ( data : ExcelTable | Data [ ] | Data [ ] [ ] , option ?: ThemeOption ) : Promise < string | number [ ] | DataModel . Buffer | Blob | undefined > ;
1027
1027
0 commit comments