jspreadsheet 8.1.5 → 8.1.10

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.
package/dist/index.d.ts CHANGED
@@ -190,6 +190,8 @@ declare namespace jspreadsheet {
190
190
  wordWrap?: boolean;
191
191
  /** Process the raw data when copy or download. Default: true */
192
192
  process?: boolean;
193
+ /** Try to cast numbers from a cell text. Default: true */
194
+ autoCasting?: boolean;
193
195
  }
194
196
 
195
197
  interface Row {
@@ -425,7 +427,7 @@ declare namespace jspreadsheet {
425
427
  /** Allow internal sequence for new rows */
426
428
  sequence?: boolean;
427
429
  /** Load the data into a new spreadsheet from an array of rows or objects */
428
- data?: Array<any>;
430
+ data?: Array<Array<any>> | Array<Record<string, any>>;
429
431
  /** Deprected. Please use the data property. */
430
432
  json?: Array<Record<string, any>>;
431
433
  /** Array with the rows properties definitions such as title, height. */
@@ -680,7 +682,7 @@ declare namespace jspreadsheet {
680
682
  /** Get the border */
681
683
  getBorder: (alias: string) => object;
682
684
  /** Get the cell element from the cellname */
683
- getCell: (cellName: string) => Object;
685
+ getCell: (cellName: string) => HTMLElement | null;
684
686
  /** Get the cell element from its coordinates */
685
687
  getCellFromCoords: (x: number, y: number) => Array<any>;
686
688
  /** Get attributes from one cell when applicable */
@@ -696,7 +698,7 @@ declare namespace jspreadsheet {
696
698
  /** Get the comments from one cell. Example: getComments('A1') */
697
699
  getComments: (cellName?: string) => string;
698
700
  /** Get the worksheet settings */
699
- getConfig: () => boolean;
701
+ getConfig: () => Worksheet;
700
702
  /**
701
703
  * Get the worksheet data
702
704
  *