(pathEntries: SessionPathEntry[], entryId: string)
| 128 | } |
| 129 | |
| 130 | function findEntryIndexById(pathEntries: SessionPathEntry[], entryId: string) { |
| 131 | for (let index = 0; index < pathEntries.length; index += 1) { |
| 132 | if (pathEntries[index]?.id === entryId) { |
| 133 | return index |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | return -1 |
| 138 | } |
| 139 | |
| 140 | export function buildThreadHistorySlice( |
| 141 | pathEntries: SessionPathEntry[], |
no outgoing calls
no test coverage detected