Skip to content

Commit 20f6580

Browse files
committed
feat(core): update types
1 parent 4039d5e commit 20f6580

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/web-integration/src/common/plan-builder.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import type {
22
DetailedLocateParam,
3-
MidsceneYamlFlowItem,
43
PlanningAction,
54
PlanningActionParamInputOrKeyPress,
6-
PlanningActionParamScroll,
75
PlanningActionParamSleep,
86
PlanningActionParamTap,
97
PlanningLocateParam,
8+
ScrollParam,
109
} from '@midscene/core';
1110
import { getDebug } from '@midscene/shared/logger';
1211
import { assert } from '@midscene/shared/utils';
@@ -18,7 +17,7 @@ export function buildPlans(
1817
locateParam?: DetailedLocateParam,
1918
param?:
2019
| PlanningActionParamInputOrKeyPress
21-
| PlanningActionParamScroll
20+
| ScrollParam
2221
| PlanningActionParamSleep,
2322
): PlanningAction[] {
2423
let returnPlans: PlanningAction[] = [];
@@ -65,9 +64,9 @@ export function buildPlans(
6564
if (type === 'Scroll') {
6665
assert(param, `missing param for action "${type}"`);
6766

68-
const scrollPlan: PlanningAction<PlanningActionParamScroll> = {
67+
const scrollPlan: PlanningAction<ScrollParam> = {
6968
type,
70-
param: param as PlanningActionParamScroll,
69+
param: param as ScrollParam,
7170
thought: '',
7271
locate: locateParam,
7372
};

0 commit comments

Comments
 (0)