effect
import { effect } from "@alloy-js/core";
function effect<T>(fn: (prev?: T) => T, current?: T, options?: EffectOptions): void;Parameters
Section titled “Parameters”| fn | (prev?: T) => T | |
| current | optional T | |
| options | optional EffectOptions |
Options
Section titled “Options”| debug | optional EffectDebugOptions |
Returns
Section titled “Returns”void