next
Version:
The React Framework
8 lines (7 loc) • 384 B
TypeScript
import type { CacheEntry } from '../lib/cache-handlers/types';
/**
* Tees a cache entry's single-use value stream into two independent entries.
* The original entry is mutated to hold one branch of the tee, and a clone is
* returned holding the other, so both can be consumed independently.
*/
export declare function cloneCacheEntry(entry: CacheEntry): [CacheEntry, CacheEntry];