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

Function checkedDefaultOf

ark/type/runtime.ts:1399–1403  ·  view source on GitHub ↗
([id, holes]: DefaultKey)

Source from the content-addressed store, hash-verified

1397type DefaultKey = [id: string, holes: readonly unknown[]]
1398
1399const checkedDefaultOf = ([id, holes]: DefaultKey): InternTable => {
1400 let table = checkedDefaults.next(id)
1401 for (const hole of holes) table = table.next(hole)
1402 return table
1403}
1404
1405// checked once per key, thrown in en as a ParseError
1406export const checkDefault = (

Callers 2

checkDefaultFunction · 0.70
internFunction · 0.70

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected