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

Function readingValues

ark/type/checkers.ts:1269–1275  ·  view source on GitHub ↗
(t: Transform, held: readonly Checker[], withCtx?: 1)

Source from the content-addressed store, hash-verified

1267
1268// what holds an alias transforms with a ctx, whichever value transforms
1269const readingValues = (t: Transform, held: readonly Checker[], withCtx?: 1) => {
1270 if (withCtx || held.some(({ w }) => w?.length === 2)) t.c = 1
1271 // a default a function writes may fail as a morph may, so what holds one
1272 // is applied as what holds a morph is
1273 if (held.some(({ w }) => w)) t.e = applyMorphAt
1274 return holdingMorphs(t, held)
1275}
1276
1277const failingValues = (
1278 write: WritesValues,

Callers 2

checkers.tsFile · 0.70
failingValuesFunction · 0.70

Calls 1

holdingMorphsFunction · 0.70

Tested by

no test coverage detected