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

Function unlessDerived

ark/type/standalone/combinators.ts:556–560  ·  view source on GitHub ↗
(
	derived: string | undefined,
	site: IssueContext
)

Source from the content-addressed store, hash-verified

554
555// a description its factory writes itself is omitted
556const unlessDerived = (
557 derived: string | undefined,
558 site: IssueContext
559): string | undefined =>
560 derived === site.description ? undefined : JSON.stringify(site.description)
561
562// the runtime's checks, by the condition each tests
563const constantChecks: Record<string, keyof typeof runtime> = {

Callers 3

writeDescribedCheckFunction · 0.85
writeCheckerFunction · 0.85
writeUnionCombinatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected