@etsoo/appscript 1.3.81 → 1.3.82

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.
@@ -11,7 +11,7 @@ export type ListItem<T> = {
11
11
  */
12
12
  icon?: T;
13
13
  /**
14
- * Action, string for URL
14
+ * Action, string for URL, any for state
15
15
  */
16
- action?: string | (() => PromiseLike<void> | void);
16
+ action?: string | [string, any] | (() => PromiseLike<void> | void);
17
17
  };
@@ -11,7 +11,7 @@ export type ListItem<T> = {
11
11
  */
12
12
  icon?: T;
13
13
  /**
14
- * Action, string for URL
14
+ * Action, string for URL, any for state
15
15
  */
16
- action?: string | (() => PromiseLike<void> | void);
16
+ action?: string | [string, any] | (() => PromiseLike<void> | void);
17
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.3.81",
3
+ "version": "1.3.82",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -13,7 +13,7 @@ export type ListItem<T> = {
13
13
  icon?: T;
14
14
 
15
15
  /**
16
- * Action, string for URL
16
+ * Action, string for URL, any for state
17
17
  */
18
- action?: string | (() => PromiseLike<void> | void);
18
+ action?: string | [string, any] | (() => PromiseLike<void> | void);
19
19
  };