MCPcopy Index your code
hub / github.com/Effect-TS/effect / tuple

Function tuple

packages/effect/src/Order.ts:208–210  ·  view source on GitHub ↗
(
  ...elements: T
)

Source from the content-addressed store, hash-verified

206 * @since 2.0.0
207 */
208export const tuple = <T extends ReadonlyArray<Order<any>>>(
209 ...elements: T
210): Order<Readonly<{ [I in keyof T]: [T[I]] extends [Order<infer A>] ? A : never }>> => all(elements) as any
211
212/**
213 * This function creates and returns a new `Order` for an array of values based on a given `Order` for the elements of the array.

Callers

nothing calls this directly

Calls 1

allFunction · 0.70

Tested by

no test coverage detected