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

Function refuse

ark/aot/sites.ts:454–464  ·  view source on GitHub ↗
(site: Site, reasons: string[])

Source from the content-addressed store, hash-verified

452}
453
454export const refuse = (site: Site, reasons: string[]): Site => {
455 site.status = "rejected"
456 site.reasons = reasons
457 site.value = undefined
458 site.roots = []
459 site.holes = []
460 site.called = []
461 site.inputs = []
462 site.references = []
463 return site
464}
465
466export const refuseDynamic = (site: Site, dynamic: DynamicValue): Site =>
467 refuse(site, chainOf(dynamic))

Callers 7

refuseWrittenMethod · 0.90
refuseThrownMethod · 0.90
refuseAnalyzedMethod · 0.90
leaveMethod · 0.90
createStandInProxyMethod · 0.70
refuseDynamicFunction · 0.70
refusalsFunction · 0.50

Calls

no outgoing calls

Tested by 1

refusalsFunction · 0.40