refactor: 💡 tree.ts refactor

This commit is contained in:
Jin 2025-04-10 22:08:34 +02:00
parent a92b040958
commit 3e6cc1b449

View File

@ -1,13 +1,11 @@
import ws from "./ws.js";
import utils from "./utils.js";
import froca from "./froca.js";
import hoistedNoteService from "../services/hoisted_note.js";
import appContext from "../components/app_context.js"; import appContext from "../components/app_context.js";
import hoistedNoteService from "../services/hoisted_note.js";
import froca from "./froca.js";
import utils from "./utils.js";
import ws from "./ws.js";
/**
* @returns {string|null} async function resolveNotePath(notePath: string, hoistedNoteId = "root"): Promise<string | null> {
*/
async function resolveNotePath(notePath: string, hoistedNoteId = "root") {
const runPath = await resolveNotePathToSegments(notePath, hoistedNoteId); const runPath = await resolveNotePathToSegments(notePath, hoistedNoteId);
return runPath ? runPath.join("/") : null; return runPath ? runPath.join("/") : null;