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

Function widen

ark/sets/structure/sequence.ts:100–105  ·  view source on GitHub ↗
(node: BaseRoot)

Source from the content-addressed store, hash-verified

98): Sequence.Inner | undefined => {
99 let widened = false
100 const widen = (node: BaseRoot): BaseRoot => {
101 const result = withUndefined(node)
102 if (result === node) return node
103 widened = true
104 return deferAliases(result, loose$!) as BaseRoot
105 }
106 let minVariadicLength = raw.minVariadicLength ?? 0
107 const prefix = raw.prefix?.slice() ?? []
108 const defaultables =

Callers 1

normalizedSequenceFunction · 0.85

Calls 2

withUndefinedFunction · 0.90
deferAliasesFunction · 0.90

Tested by

no test coverage detected