(path: string, expanded: boolean, depth = 0)
| 34 | }); |
| 35 | |
| 36 | const dir = (path: string, expanded: boolean, depth = 0): TreeRow => ({ |
| 37 | name: path.split('/').pop() ?? path, |
| 38 | path, |
| 39 | kind: 'dir', |
| 40 | symbols: 10, |
| 41 | files: 2, |
| 42 | depth, |
| 43 | expanded, |
| 44 | loaded: true, |
| 45 | }); |
| 46 | |
| 47 | const file = (path: string, depth = 1): TreeRow => ({ |
| 48 | name: path.split('/').pop() ?? path, |
no outgoing calls
no test coverage detected