We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745a7ca commit 9679b92Copy full SHA for 9679b92
packages/svelte-file-tree/src/lib/tree.svelte.ts
@@ -6,7 +6,7 @@ export type FileNodeProps = {
6
};
7
8
export class FileNode {
9
- readonly id: string;
+ id: string;
10
name = $state.raw("");
11
12
constructor(props: FileNodeProps) {
@@ -24,7 +24,7 @@ export type FolderNodeProps<TNode extends FileNode | FolderNode<TNode> = FileTre
24
25
26
export class FolderNode<TNode extends FileNode | FolderNode<TNode> = FileTreeNode> {
27
28
29
children: Array<TNode> = $state([]);
30
0 commit comments