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

Function queueUnchecked

ark/schema/shared/utils.ts:97–104  ·  view source on GitHub ↗
(assert: () => void, key?: string)

Source from the content-addressed store, hash-verified

95
96// a check can resolve the alias whose union queued it, so a keyed check is queued once
97export const queueUnchecked = (assert: () => void, key?: string): void => {
98 uncheckedSeq++
99 if (key !== undefined) {
100 if (uncheckedKeys[key]) return
101 uncheckedKeys[key] = true
102 }
103 uncheckedAssertions.push(assert)
104}
105
106/**
107 * marks a node created while a deferred check is pending so it isn't served

Callers 7

checkWrittenIntersectionFunction · 0.90
assertDeterminateOverlapFunction · 0.90
intersectPropsAndIndexFunction · 0.90
instantiateMethod · 0.90
checkArgsMethod · 0.90
checkDefaultFunction · 0.90
markUncheckedFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected