rvx
Version:
A signal based rendering library
13 lines • 701 B
TypeScript
import { MapArrayFn } from "./internals/map-array.js";
import { Expression } from "./signals.js";
export { MapArrayFn } from "./internals/map-array.js";
/**
* Run a function for each value in an iterable expression keyed by value.
*
* + The current context is available in the map function.
* + Evaluation is stopped when the current lifecycle is disposed.
* + Teardown hooks from within the map function are called when a value is removed or when the current lifecycle is disposed.
* + Returns a function to reactively access the latest result.
*/
export declare function mapArray<I, O>(inputs: Expression<Iterable<I>>, fn: MapArrayFn<I, O>): () => O[];
//# sourceMappingURL=map-array.d.ts.map