(text: string, ranges: Array<{ start: number; end: number }>)
| 284 | } |
| 285 | |
| 286 | function stripRanges(text: string, ranges: Array<{ start: number; end: number }>): string { |
| 287 | let out = ""; |
| 288 | let cursor = 0; |
| 289 | for (const range of [...ranges].sort((a, b) => a.start - b.start)) { |
| 290 | out += text.slice(cursor, range.start); |
| 291 | cursor = range.end; |
| 292 | } |
| 293 | return out + text.slice(cursor); |
| 294 | } |
| 295 | |
| 296 | function collectKeyframeBlocks(css: string): { |
| 297 | keyframes: Array<{ name: string; stops: CssKeyframeStop[] }>; |
no outgoing calls
no test coverage detected