(cues: Cue[], cue: Cue | undefined)
| 322 | } |
| 323 | |
| 324 | function pushCue(cues: Cue[], cue: Cue | undefined): void { |
| 325 | if (!cue) return; |
| 326 | const text = cue.text.trim(); |
| 327 | if (!text) return; |
| 328 | cues.push({ text, start: round3(cue.start), end: round3(cue.end) }); |
| 329 | } |
| 330 | |
| 331 | /** Whether `word` should start a new cue rather than extend `current`. */ |
| 332 | function breaksCue( |
no test coverage detected