Module

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

Business logic with ease ☄️
Latest
function merge
import { merge } from "https://dotland.deno.dev/x/effector@effector-vue%4023.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