applyStepEffects function exported
Last updated: 2026-03-05T10:53:28.861Z
Metrics
LOC: 8
Complexity: 3
Params: 3
Signature
applyStepEffects(
effects: StepEffect[] | undefined,
selector: string | undefined,
): : Promise<void>
Summary
Runs all effects for a step in parallel. The step's CSS selector is used to resolve the target element.
Tags
#@param effects - List of effects to apply (may be empty).#@param selector - CSS selector for the step's target element.
Source Code
export async function applyStepEffects(
effects: StepEffect[] | undefined,
selector: string | undefined,
): Promise<void> {
if (!effects || effects.length === 0) return;
await Promise.all(effects.map((e) => applyEffect(e, selector)));
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| applyEffect | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| executeStep | uses |