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

Function outputsUnit

ark/type/deferred.ts:678–686  ·  view source on GitHub ↗
(branch: BaseRoot)

Source from the content-addressed store, hash-verified

676
677// a narrow of a morph is of its output, so a unit that allows is one it checks
678const outputsUnit = (branch: BaseRoot) => {
679 if (!branch.is("morph")) return false
680 try {
681 return branch._out.branches.some(isUnit)
682 } catch {
683 // an output that can't be written could be anything
684 return true
685 }
686}
687
688type NodeHeld = {
689 bits: number

Callers 1

nodeFactsFunction · 0.85

Calls 1

isMethod · 0.80

Tested by

no test coverage detected