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

Function tupleWithRest

packages/effect/src/SchemaAST.ts:2495–2500  ·  view source on GitHub ↗
(ast: Arrays, rest: ReadonlyArray<AST>)

Source from the content-addressed store, hash-verified

2493
2494/** @internal */
2495export function tupleWithRest(ast: Arrays, rest: ReadonlyArray<AST>): Arrays {
2496 if (ast.encoding) {
2497 throw new Error("TupleWithRest does not support encodings")
2498 }
2499 return new Arrays(ast.isMutable, ast.elements, rest, undefined, ast.checks)
2500}
2501
2502type Type =
2503 | "null"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected