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

Function settle

ark/aot/shadow.ts:42–45  ·  view source on GitHub ↗
(outcome: Outcome)

Source from the content-addressed store, hash-verified

40}
41
42const settle = (outcome: Outcome): unknown => {
43 if ("thrown" in outcome) throw outcome.thrown
44 return failureByErrors.get(outcome.value as object) ?? outcome.value
45}
46
47const precompiledByShadowed = new WeakMap<object, unknown>()
48

Callers 6

introspectFunction · 0.70
callbackOfFunction · 0.70
recordFunction · 0.70
replayFunction · 0.70
validateBothFunction · 0.70
createAsyncPrecompilerFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected