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

Function parseMetaTuple

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

Source from the content-addressed store, hash-verified

526}
527
528const parseMetaTuple: IndexOneParser<"@"> = (def, ctx) => {
529 assertTupleArity(def, "@", 3, 4)
530 return ctx.$.parseOwn(def[0], ctx).configure(
531 def[2] as never,
532 def[3] as NodeSelector
533 )
534}
535
536export type IndexOneExpression<token extends string = IndexOneOperator> =
537 readonly [unknown, token, ...unknown[]]

Callers

nothing calls this directly

Calls 2

assertTupleArityFunction · 0.85
parseOwnMethod · 0.45

Tested by

no test coverage detected