jspreadsheet 11.4.0 → 11.4.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
@@ -27,6 +27,8 @@ declare namespace jspreadsheet {
27
27
  let history: History;
28
28
  /** Clipboard controller */
29
29
  let clipboard: ClipBoard;
30
+ /** Shortcuts */
31
+ let shortcuts: Shortcuts;
30
32
  /** Get the worksheet instance by its name */
31
33
  function getWorksheetInstanceByName(worksheetName: string, namespace?: string) : worksheetInstance;
32
34
 
@@ -84,6 +86,11 @@ declare namespace jspreadsheet {
84
86
  /** Get the current version */
85
87
  function version(): object;
86
88
 
89
+ interface Shortcuts {
90
+ get: (event: object) => Function | null;
91
+ set: (shortcut: string, method: Function | null) => void;
92
+ }
93
+
87
94
  interface PickerOptions {
88
95
  // picker creates a range selection component. formula expect to be a formula starting with '='
89
96
  type?: 'formula' | 'picker';