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

Function parseKeyOfTuple

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

Source from the content-addressed store, hash-verified

444}
445
446export const parseKeyOfTuple: IndexZeroParser<"keyof"> = (def, ctx) => {
447 assertTupleArity(def, "keyof", 2)
448 return ctx.$.parseOwn(def[1], ctx).keyof()
449}
450
451export type inferKeyOfExpression<operandDef, $, args> = show<
452 keyof unbrandKeyofOperand<inferDefinition<operandDef, $, args>>

Callers

nothing calls this directly

Calls 3

assertTupleArityFunction · 0.85
keyofMethod · 0.65
parseOwnMethod · 0.45

Tested by

no test coverage detected