forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSourceAction.js
More file actions
65 lines (63 loc) · 1.14 KB
/
SourceAction.js
File metadata and controls
65 lines (63 loc) · 1.14 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// @flow
import type { Location, Source } from "../../types";
import type { PromiseAction } from "../utils/middleware/promise";
export type SourceAction =
| {|
+type: "ADD_SOURCE",
+source: Source
|}
| {|
+type: "ADD_SOURCES",
+sources: Array<Source>
|}
| {|
+type: "UPDATE_SOURCE",
+source: Source
|}
| {|
+type: "SELECT_SOURCE",
+source: Source,
+location?: Location
|}
| {|
+type: "SELECT_SOURCE_URL",
+url: string,
+line: ?number
|}
| PromiseAction<
{|
+type: "LOAD_SOURCE_TEXT",
+sourceId: string
|},
Source
>
| {| type: "CLEAR_SELECTED_SOURCE" |}
| PromiseAction<
{|
+type: "BLACKBOX",
+source: Source
|},
{|
+isBlackBoxed: boolean
|}
>
| {|
+type: "ADD_TAB",
+source: Source,
+tabIndex: number
|}
| {|
+type: "MOVE_TAB",
+url: string,
+tabIndex: number
|}
| {|
+type: "CLOSE_TAB",
+url: string,
+tabs: any
|}
| {|
+type: "CLOSE_TABS",
+urls: string[],
+tabs: any
|};