( existingIndex: TranscriptIndex | null, transcript: TranscriptSegment[], )
| 292 | } |
| 293 | |
| 294 | function ensureTranscriptIndex( |
| 295 | existingIndex: TranscriptIndex | null, |
| 296 | transcript: TranscriptSegment[], |
| 297 | ): TranscriptIndex { |
| 298 | if (existingIndex) return existingIndex; |
| 299 | return buildTranscriptIndex(transcript); |
| 300 | } |
| 301 | |
| 302 | export function hydrateTopicsWithTranscript( |
| 303 | topics: Topic[] | null | undefined, |
no test coverage detected