astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
13 lines (12 loc) • 557 B
TypeScript
import { type RenderDestination } from '../common.js';
import type { RenderQueue } from './types.js';
/**
* Renders a queue of nodes to a destination.
* This function processes nodes sequentially with batching optimization.
* Consecutive batchable nodes (text, HTML-string, simple elements) are
* combined into a single write to reduce overhead.
*
* @param queue - The render queue to process
* @param destination - Where to write the output
*/
export declare function renderQueue(queue: RenderQueue, destination: RenderDestination): Promise<void>;