Skip to content

Commit b4ffbc6

Browse files
committed
fix: typescript types
1 parent 252adb3 commit b4ffbc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Edges/EdgeController/smart-edge.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,9 @@ export class SmartEdge {
523523
};
524524

525525
rebuildEdge = (points: ControlPoint[]) => {
526-
const edge: ReactflowEdgeWithData = kReactflow.instance!.getEdge(
526+
const edge = kReactflow.instance!.getEdge(
527527
this.ctx.id
528-
)!;
528+
)! as ReactflowEdgeWithData;
529529
edge.data!.layout!.points = reducePoints(points);
530530
rebuildEdge(this.ctx.id);
531531
};

src/data/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ControlPoint } from "../layout/edge/point";
44

55
interface WorkflowNode extends Record<string, unknown> {
66
id: string;
7-
type: string;
7+
type: "base" | "start";
88
}
99

1010
interface WorkflowEdge {

0 commit comments

Comments
 (0)