Skip to content

Commit 6729b6d

Browse files
fix(tree): fix exported symbol cannot be named error. (#10626)
1 parent 27ef2dc commit 6729b6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/demo-app/tree/checklist-tree-demo/checklist-tree-demo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {SelectionModel} from '@angular/cdk/collections';
1010
import {FlatTreeControl} from '@angular/cdk/tree';
1111
import {MatTreeFlattener, MatTreeFlatDataSource} from '@angular/material/tree';
1212
import {TodoItemNode, ChecklistDatabase} from './checklist-database';
13+
import {BehaviorSubject} from 'rxjs';
1314

1415
/**
1516
* Checklist demo with flat tree
@@ -51,7 +52,7 @@ export class ChecklistTreeDemo {
5152
return node.children.value.length > 0;
5253
}
5354

54-
getChildren = (node: TodoItemNode) => {
55+
getChildren = (node: TodoItemNode): BehaviorSubject<TodoItemNode[]> => {
5556
return node.children;
5657
}
5758

0 commit comments

Comments
 (0)