Skip to content

Commit

Permalink
ui/tree isolated declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
brollin committed Aug 10, 2024
1 parent 1b9ab0e commit 3896030
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ui/tree/src/ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export function removeChild(parent: Tree.Node, id: string): void {
});
}

export function countChildrenAndComments(node: Tree.Node) {
export function countChildrenAndComments(node: Tree.Node): {
nodes: number;
comments: number;
} {
const count = {
nodes: 1,
comments: (node.comments || []).length,
Expand Down
3 changes: 2 additions & 1 deletion ui/tree/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"compilerOptions": {
"outDir": "./dist",
"rootDir": "src",
"composite": true
"composite": true,
"isolatedDeclarations": true
},

"references": [{ "path": "../common/tsconfig.json" }]
Expand Down

0 comments on commit 3896030

Please sign in to comment.