@expofp/floorplan
Version:
Interactive floor plan library for expos and events
13 lines • 662 B
TypeScript
/**
* A value derived from the live event, built on first read and again on the
* first read after a new config is installed. Use it for state that has to be
* a single mutable object for the lifetime of one plan (the kind a plain
* function returning a fresh object each call cannot serve).
*
* @param build Produces the value for the event that is live when it runs.
* @returns A getter for the live event's value.
*/
export declare function eventScopedValue<T>(build: () => T): () => T;
/** A `Map` that starts empty for every plan. */
export declare function eventScopedCache<K, V>(): () => Map<K, V>;
//# sourceMappingURL=event-scoped-cache.d.ts.map