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

Function checkedDefaultOf

ark/aot/settingsValidators.ts:928–932  ·  view source on GitHub ↗
([id, holes])

Source from the content-addressed store, hash-verified

926var failsAtKey = (ctx, site, data, key) =>
927 !ctx?._e || failsKeySite(ctx, site, data, key)
928var checkedDefaultOf = ([id, holes]) => {
929 let table = checkedDefaults.next(id)
930 for (const hole of holes) table = table.next(hole)
931 return table
932}
933var holesByValue = /* @__PURE__ */ new WeakMap()
934var holdHoles = (value, id, holes = []) => {
935 holesByValue.set(value, [id, freeze(holes)])

Callers 1

internFunction · 0.70

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected