/// import { Cell, cell, recipe, UI } from "commontools"; interface State { values: number[]; multiplier: number; } export default recipe("CellMapCaptures", (state) => { // Explicitly type as Cell to ensure closure transformation const typedValues: Cell = cell(state.values); return { [UI]: (
{typedValues.map((value) => ( {value * state.multiplier} ))}
), }; });