1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export type List = ListItem[];
export type ListItem = {
title: string;
actions: Action[];
};
export type Action = CopyAction | OpenAction | PushAction | RunAction;
export type PushAction = {
title: string;
type: "push";
page: string;
};
export type CopyAction = {
title: string;
type: "copy";
text: string;
};
export type OpenAction = {
title: string;
type: "open";
url: string | List;
};
export type RunAction = {
title: string;
type: "run";
command: string;
params: {};
};