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

Function discardUnchecked

ark/schema/shared/utils.ts:182–190  ·  view source on GitHub ↗
(passed?: boolean)

Source from the content-addressed store, hash-verified

180export const uncheckedDiscards = (): number => discards
181
182const discardUnchecked = (passed?: boolean): void => {
183 if (!passed && uncheckedAssertions.length) {
184 discards++
185 for (const [, from, to, unrun] of uncheckedOwners) if (from < to) unrun()
186 }
187 uncheckedAssertions.length = 0
188 uncheckedOwners.length = 0
189 uncheckedKeys = {}
190}
191
192export const resolving = <t>(resolve: () => t): t => {
193 inProgress.resolutions++

Callers 3

assertUncheckedFunction · 0.85
leaveResolutionFunction · 0.85
definingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected