MCPcopy Create free account
hub / github.com/arktypeio/arktype / parseArrayTuple

Function parseArrayTuple

ark/type/parser/tupleExpressions.ts:472–475  ·  view source on GitHub ↗
(def, ctx)

Source from the content-addressed store, hash-verified

470}
471
472const parseArrayTuple: IndexOneParser<"[]"> = (def, ctx) => {
473 assertTupleArity(def, "[]", 2)
474 return ctx.$.parseOwn(def[0], ctx).rawArray()
475}
476
477export type TupleExpression = IndexZeroExpression | IndexOneExpression
478

Callers

nothing calls this directly

Calls 2

assertTupleArityFunction · 0.85
parseOwnMethod · 0.45

Tested by

no test coverage detected