Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/effector/packages/effector/index.d.ts>merge

Business logic with ease ☄️
Latest
function merge
import { merge } from "https://deno.land/x/effector@effector-vue@23.1.0/packages/effector/index.d.ts";

Merges array of units (events, effects or stores), returns a new event, which fires upon trigger of any of given units

Parameters

units: ReadonlyArray<Unit<T>>

array of units to be merged

Returns

EventAsReturnType<T>

Merges array of units (events, effects or stores), returns a new event, which fires upon trigger of any of given units

Type Parameters

T extends ReadonlyArray<Unit<any>>

Parameters

units: T

array of units to be merged

Returns

T[number] extends Unit<infer R> ? Event<R> : never