Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Typing fixes

Smaug67390e877fbc78d5
diff --git a/frontend/app/composables/TreeStructure.ts b/frontend/app/composables/TreeStructure.ts
index f5e40e77..6e19e726 100644
--- a/frontend/app/composables/TreeStructure.ts
+++ b/frontend/app/composables/TreeStructure.ts
@@ -1,7 +1,7 @@
import type { Node } from '~/stores';
-export interface ANode {
- id: string | number;
+export interface ANode<id = string | number> {
+ id: id;
label: string;
parent_id?: string;
childrens?: ANode[];