chore(monorepo/client): group more data types into commons

This commit is contained in:
Elian Doran
2025-04-18 10:37:03 +03:00
parent 1b24207e9e
commit 6b73ec4c1f
10 changed files with 495 additions and 254 deletions

View File

@@ -1,6 +1,6 @@
import TypeWidget from "./type_widget.js";
import utils from "../../services/utils.js";
import type { MindElixirCtor } from "mind-elixir";
import type { MindElixirCtor, MindElixirInstance } from "mind-elixir";
import nodeMenu from "@mind-elixir/node-menu";
import type FNote from "../../entities/fnote.js";
import type { EventData } from "../../components/app_context.js";
@@ -152,7 +152,7 @@ export default class MindMapWidget extends TypeWidget {
private $content!: JQuery<HTMLElement>;
private triggeredByUserOperation?: boolean;
private mind?: ReturnType<MindElixirCtor["new"]>;
private mind?: MindElixirInstance;
private MindElixir: any; // TODO: Fix type
static getType() {