@etsoo/appscript 1.4.33 → 1.4.34
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* List item definition
|
|
3
3
|
*/
|
|
4
|
-
export type ListItem<T> = {
|
|
4
|
+
export type ListItem<T, E = any> = {
|
|
5
5
|
/**
|
|
6
6
|
* Label, '-' for divider
|
|
7
7
|
*/
|
|
@@ -13,5 +13,5 @@ export type ListItem<T> = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Action, string for URL, any for state
|
|
15
15
|
*/
|
|
16
|
-
action?: string | [string, any] | (() => PromiseLike<void> | void);
|
|
16
|
+
action?: string | [string, any] | ((event: E) => PromiseLike<void> | void);
|
|
17
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* List item definition
|
|
3
3
|
*/
|
|
4
|
-
export type ListItem<T> = {
|
|
4
|
+
export type ListItem<T, E = any> = {
|
|
5
5
|
/**
|
|
6
6
|
* Label, '-' for divider
|
|
7
7
|
*/
|
|
@@ -13,5 +13,5 @@ export type ListItem<T> = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Action, string for URL, any for state
|
|
15
15
|
*/
|
|
16
|
-
action?: string | [string, any] | (() => PromiseLike<void> | void);
|
|
16
|
+
action?: string | [string, any] | ((event: E) => PromiseLike<void> | void);
|
|
17
17
|
};
|
package/package.json
CHANGED
package/src/def/ListItem.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* List item definition
|
|
3
3
|
*/
|
|
4
|
-
export type ListItem<T> = {
|
|
4
|
+
export type ListItem<T, E = any> = {
|
|
5
5
|
/**
|
|
6
6
|
* Label, '-' for divider
|
|
7
7
|
*/
|
|
@@ -15,5 +15,5 @@ export type ListItem<T> = {
|
|
|
15
15
|
/**
|
|
16
16
|
* Action, string for URL, any for state
|
|
17
17
|
*/
|
|
18
|
-
action?: string | [string, any] | (() => PromiseLike<void> | void);
|
|
18
|
+
action?: string | [string, any] | ((event: E) => PromiseLike<void> | void);
|
|
19
19
|
};
|