(input: {
level: number
filter?: { dirs: Set<string> }
expanded: (dir: string) => boolean
})
| 51 | } |
| 52 | |
| 53 | export function dirsToExpand(input: { |
| 54 | level: number |
| 55 | filter?: { dirs: Set<string> } |
| 56 | expanded: (dir: string) => boolean |
| 57 | }) { |
| 58 | if (input.level !== 0) return [] |
| 59 | if (!input.filter) return [] |
| 60 | return [...input.filter.dirs].filter((dir) => !input.expanded(dir)) |
| 61 | } |
| 62 | |
| 63 | const kindLabel = (kind: Kind) => { |
| 64 | if (kind === "add") return "A" |
no outgoing calls
no test coverage detected