( full: string, chunkSize = 8, options?: RehtmlOptions, )
| 13 | |
| 14 | /** Run rehtml at each chunk boundary */ |
| 15 | export function streamSnapshots( |
| 16 | full: string, |
| 17 | chunkSize = 8, |
| 18 | options?: RehtmlOptions, |
| 19 | ): RehtmlResult[] { |
| 20 | return [...streamChunks(full, chunkSize)].map((chunk) => |
| 21 | rehtml(chunk, options), |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | /** Assert stable block count never decreases during streaming */ |
| 26 | export function assertMonotonicStable( |
no test coverage detected