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

Function fallback

ark/type/standalone/fallbacks.ts:230–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 }
229
230 const fallback: ToJsonSchema.UniversalFallback = ctx => {
231 const { object } = refOf(ctx) as { object: number }
232 const changes = changesSinceLastStep()
233 const { hole, result } = unwritten()
234 steps.push({ call: hole, code: ctx.code, ctx: object, changes })
235 return result as JsonSchema
236 }
237
238 // holding the keys of a result, copied in
239 const copiesResult = (value: unknown) =>

Callers

nothing calls this directly

Calls 4

refOfFunction · 0.85
changesSinceLastStepFunction · 0.85
unwrittenFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected