UNPKG

jelenjs

Version:

Core runtime library for JelenJS - an experimental UI framework with fine-grained reactivity

20 lines (19 loc) 527 B
/** * Batching system for grouping reactive updates */ /** * Run a function in batch mode, where updates are applied only after * the function completes * * @param fn Function to execute in batch mode * @returns The result of the executed function */ export declare function batch<T>(fn: () => T): T; /** * Check if we're currently in batch mode */ export declare function isBatching(): boolean; /** * Mark that notifications are needed after current batch completes */ export declare function notifyBatch(): void;