MCPcopy Create free account
hub / github.com/effect-app/libs / ArrayEnsure

Function ArrayEnsure

repos/effect/packages/effect/src/Schema.ts:4567–4575  ·  view source on GitHub ↗
(schema: S)

Source from the content-addressed store, hash-verified

4565 * Extends a fixed-length tuple schema with a variadic rest segment.
4566 *
4567 * **Details**
4568 *
4569 * The resulting tuple starts with the fixed elements from `schema`. The first
4570 * schema in `rest` is the repeatable element schema, and any additional schemas
4571 * in `rest` are required trailing tuple elements after the variadic segment. For
4572 * example, `[Schema.Boolean, Schema.String]` represents zero or more booleans
4573 * followed by a final string.
4574 *
4575 * **Example** (Defining tuples with rest elements)
4576 *
4577 * ```ts import.meta.vitest
4578 * import { Schema } from "effect"

Callers

nothing calls this directly

Calls 5

toTypeInterface · 0.85
UnionFunction · 0.70
decodeToFunction · 0.70
pipeMethod · 0.65
transformMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…