tsc fixes and rules

This commit is contained in:
2026-02-28 01:10:14 +01:00
parent ae02080563
commit a643f24452
7 changed files with 26 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
import { Dropdown, type MenuProps } from "antd";
import { defaultGraph, graphContext, type EdgeModel, type NodeContext } from "./Graph";
import { defaultGraph, graphContext, GraphModel, type EdgeModel, type NodeContext } from "./Graph";
import { useContext } from "react";
import { cloneDeep } from "lodash";
import { useGraphsStore } from "../stores/GraphsStore";
@@ -39,7 +39,7 @@ export default function NodeContextMenu({
}
const graphContextValue = useContext(graphContext)!;
const graphsById = useGraphsStore((s) => s.graphsById);
const graphsById = useGraphsStore((s) => (s as { graphsById: Map<string, GraphModel> }).graphsById);
const addTreeNode = useGraphLayersTreeStore(store => store.add);
function contextMenuOpenChange(open: boolean) {