updated data type

This commit is contained in:
Ari Sosnovsky committed 2021-11-11 16:21:12 -05:00
1 parent 7127c3c0b9
commit 9b50f73b62
26 files changed
+590 -927

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import { Automation } from "../../automation/types";
import { AutomationData } from "../../automations/types";
import { GRAPH_HEIGHT, GRAPH_WIDTH, NODE_HEIGHT, NODE_WIDTH } from "./constants";
import {DAG, Node, Point, NormalizedDag} from "./types";
@@ -22,7 +22,7 @@ export const normalizeDAG = (dag: DAG): NormalizedDag => {
edges: dag.edges,
}
}
export const computeDAG = (automation: Automation) : DAG => {
export const computeDAG = (automation: AutomationData) : DAG => {
const nodes: DAG['nodes'] = {};
const edges: DAG['edges'] = [];