@iyulab/flex-table 0.14.0 → 0.16.0
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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal XLSX reader — no external dependencies.
|
|
3
|
+
* Reads OOXML (.xlsx) files using ZIP central directory + DOMParser.
|
|
4
|
+
* Handles STORE (no compression) and DEFLATE compression.
|
|
5
|
+
* Supports string, number, boolean, and date cell types.
|
|
6
|
+
*/
|
|
7
|
+
/** Parsed sheet data from an XLSX file */
|
|
8
|
+
export interface ImportedSheet {
|
|
9
|
+
/** Column header strings from the first row */
|
|
10
|
+
headers: string[];
|
|
11
|
+
/** Data rows as raw string values (one string per cell) */
|
|
12
|
+
rows: string[][];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Parse an XLSX file buffer into a structured ImportedSheet.
|
|
16
|
+
* The first row is treated as headers; subsequent rows are data.
|
|
17
|
+
* All values are returned as raw strings — type coercion is left to the consumer.
|
|
18
|
+
*/
|
|
19
|
+
export declare function readXlsx(buffer: ArrayBuffer): Promise<ImportedSheet>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|