@@ -6,43 +6,51 @@ import {
6
6
} from "@/proto/ssl_gc_engine" ;
7
7
import type { Config } from "@/proto/ssl_gc_engine_config" ;
8
8
9
- export const emptyGcState = {
9
+ export const emptyGcState : GcState = {
10
10
teamState : {
11
11
YELLOW : {
12
12
connected : false ,
13
13
connectionVerified : false ,
14
14
remoteControlConnected : false ,
15
15
remoteControlConnectionVerified : false ,
16
- advantageChoice : TeamAdvantageChoice_AdvantageChoice . UNRECOGNIZED ,
16
+ advantageChoice : {
17
+ choice : TeamAdvantageChoice_AdvantageChoice . UNRECOGNIZED ,
18
+ } ,
17
19
} ,
18
20
BLUE : {
19
21
connected : false ,
20
22
connectionVerified : false ,
21
23
remoteControlConnected : false ,
22
24
remoteControlConnectionVerified : false ,
23
- advantageChoice : TeamAdvantageChoice_AdvantageChoice . UNRECOGNIZED ,
25
+ advantageChoice : {
26
+ choice : TeamAdvantageChoice_AdvantageChoice . UNRECOGNIZED ,
27
+ } ,
24
28
} ,
25
29
} ,
26
30
autoRefState : { } ,
27
31
trackers : { } ,
28
32
continueActions : [ ] ,
29
- } as GcState
33
+ }
30
34
31
- export const mockedGcState = {
35
+ export const mockedGcState : GcState = {
32
36
teamState : {
33
37
YELLOW : {
34
38
connected : false ,
35
39
connectionVerified : false ,
36
40
remoteControlConnected : false ,
37
41
remoteControlConnectionVerified : false ,
38
- advantageChoice : TeamAdvantageChoice_AdvantageChoice . UNRECOGNIZED ,
42
+ advantageChoice : {
43
+ choice : TeamAdvantageChoice_AdvantageChoice . UNRECOGNIZED ,
44
+ } ,
39
45
} ,
40
46
BLUE : {
41
47
connected : false ,
42
48
connectionVerified : false ,
43
49
remoteControlConnected : false ,
44
50
remoteControlConnectionVerified : false ,
45
- advantageChoice : TeamAdvantageChoice_AdvantageChoice . UNRECOGNIZED ,
51
+ advantageChoice : {
52
+ choice : TeamAdvantageChoice_AdvantageChoice . UNRECOGNIZED ,
53
+ } ,
46
54
} ,
47
55
} ,
48
56
autoRefState : { } ,
@@ -65,7 +73,7 @@ export const mockedGcState = {
65
73
state : ContinueAction_State . READY_MANUAL ,
66
74
}
67
75
] ,
68
- } as GcState
76
+ }
69
77
70
78
export const emptyConfig = {
71
79
autoContinue : false ,
0 commit comments