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

Method union

ark/aot/graph.ts:2103–2115  ·  view source on GitHub ↗
(
			types: (TSType | TSTypeAnnotation | null)[],
			depth: number
		)

Source from the content-addressed store, hash-verified

2101 return
2102 }
2103 const union = (
2104 types: (TSType | TSTypeAnnotation | null)[],
2105 depth: number
2106 ) =>
2107 this.unionKindOf(
2108 types,
2109 context,
2110 module,
2111 kindOfKey,
2112 depth,
2113 typeArgs,
2114 state
2115 )
2116 switch (type.type) {
2117 case "TSTypeAnnotation":
2118 case "TSParenthesizedType":

Callers 6

scenarios.tsFile · 0.80
ops.tsFile · 0.80
cyclic.test.tsFile · 0.80
branchGroupsToJsonSchemaFunction · 0.80

Calls 1

unionKindOfMethod · 0.95

Tested by

no test coverage detected