(node: TreeNode, acc: Set<string>)
| 186 | }; |
| 187 | |
| 188 | const collectGroupPaths = (node: TreeNode, acc: Set<string>): void => { |
| 189 | for (const child of node.children.values()) { |
| 190 | if (child.children.size > 0) { |
| 191 | acc.add(child.path); |
| 192 | collectGroupPaths(child, acc); |
| 193 | } |
| 194 | } |
| 195 | }; |
| 196 | |
| 197 | const flattenTree = ( |
| 198 | node: TreeNode, |