jspreadsheet 10.5.3 → 10.6.1

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
@@ -218,6 +218,13 @@ declare namespace jspreadsheet {
218
218
 
219
219
  /** Helpers */
220
220
  interface Helpers {
221
+ /**
222
+ * Compare two arrays to see if contains exact the same elements
223
+ * @param {number[]} a1
224
+ * @param {number[]} a2
225
+ * @return {boolean}
226
+ */
227
+ compareArray: (a1: number[], a2: number[]) => boolean;
221
228
  // Get caret position for editable dom element
222
229
  getCaretIndex: (element: HTMLElement) => number;
223
230
  // Invert the key and values in an object
@@ -1063,8 +1070,8 @@ declare namespace jspreadsheet {
1063
1070
  dispatch: (...args: string[]) => void;
1064
1071
  /** Get the spreadsheet configuration */
1065
1072
  getConfig: () => Spreadsheet;
1066
- /** Get the worksheet index by instance or worksheetId */
1067
- getWorksheet: (worksheetIdent: worksheetInstance | string) => number;
1073
+ /** Get the worksheet index by instance */
1074
+ getWorksheet: (worksheetIdent: worksheetInstance) => number;
1068
1075
  /** Get the worksheet name */
1069
1076
  getWorksheetName: (position: number) => string;
1070
1077
  /** Open a worksheet */