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

Function rekeyed

ark/type/runtime.ts:588–595  ·  view source on GitHub ↗
(
	parts: ValidatorParts,
	holes: readonly unknown[]
)

Source from the content-addressed store, hash-verified

586
587// a folded factory's validator, interned by the holes received
588export const rekeyed = (
589 parts: ValidatorParts,
590 holes: readonly unknown[]
591): Validator => {
592 let copies = copiesByParts.get(parts)
593 if (!copies) copiesByParts.set(parts, (copies = new InternTable()))
594 return intern(copies, holes, () => createValidator(...parts, holes))
595}
596
597type TypeOnlyMember =
598 | typeof inferred

Callers

nothing calls this directly

Calls 3

internFunction · 0.70
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected