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

Function wrap

ark/type/deferred.ts:409–409  ·  view source on GitHub ↗
(f: Facts)

Source from the content-addressed store, hash-verified

407}
408
409const wrap = (f: Facts) => (f.terms ? `(${f.key})` : f.key)
410
411const arrayFacts = (element: Facts): Facts => {
412 const of = `${wrap(element)}[]`

Callers 6

arrayFactsFunction · 0.70
andFactsFunction · 0.70
defaultKeyFunction · 0.70
boundMethodFunction · 0.70
metaFactsFunction · 0.70
deferred.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected