MCPcopy Create free account
hub / github.com/Effect-TS/effect / tuple

Function tuple

packages/effect/src/Equivalence.ts:190–192  ·  view source on GitHub ↗
(
  ...elements: T
)

Source from the content-addressed store, hash-verified

188 * @since 2.0.0
189 */
190export const tuple = <T extends ReadonlyArray<Equivalence<any>>>(
191 ...elements: T
192): Equivalence<Readonly<{ [I in keyof T]: [T[I]] extends [Equivalence<infer A>] ? A : never }>> => all(elements) as any
193
194/**
195 * Creates a new `Equivalence` for an array of values based on a given `Equivalence` for the elements of the array.

Callers

nothing calls this directly

Calls 1

allFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…