File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/web-integration/src/common Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type {
2
2
DetailedLocateParam ,
3
- MidsceneYamlFlowItem ,
4
3
PlanningAction ,
5
4
PlanningActionParamInputOrKeyPress ,
6
- PlanningActionParamScroll ,
7
5
PlanningActionParamSleep ,
8
6
PlanningActionParamTap ,
9
7
PlanningLocateParam ,
8
+ ScrollParam ,
10
9
} from '@midscene/core' ;
11
10
import { getDebug } from '@midscene/shared/logger' ;
12
11
import { assert } from '@midscene/shared/utils' ;
@@ -18,7 +17,7 @@ export function buildPlans(
18
17
locateParam ?: DetailedLocateParam ,
19
18
param ?:
20
19
| PlanningActionParamInputOrKeyPress
21
- | PlanningActionParamScroll
20
+ | ScrollParam
22
21
| PlanningActionParamSleep ,
23
22
) : PlanningAction [ ] {
24
23
let returnPlans : PlanningAction [ ] = [ ] ;
@@ -65,9 +64,9 @@ export function buildPlans(
65
64
if ( type === 'Scroll' ) {
66
65
assert ( param , `missing param for action "${ type } "` ) ;
67
66
68
- const scrollPlan : PlanningAction < PlanningActionParamScroll > = {
67
+ const scrollPlan : PlanningAction < ScrollParam > = {
69
68
type,
70
- param : param as PlanningActionParamScroll ,
69
+ param : param as ScrollParam ,
71
70
thought : '' ,
72
71
locate : locateParam ,
73
72
} ;
You can’t perform that action at this time.
0 commit comments