MCPcopy Create free account
hub / github.com/Effect-TS/effect / UnionUnifyAST

Function UnionUnifyAST

packages/platform/src/HttpApiSchema.ts:247–248  ·  view source on GitHub ↗
(self: AST.AST, that: AST.AST)

Source from the content-addressed store, hash-verified

245
246/** @internal */
247export const UnionUnifyAST = (self: AST.AST, that: AST.AST): AST.AST =>
248 AST.Union.make(Array.from(new Set<AST.AST>([...extractUnionTypes(self), ...extractUnionTypes(that)])))
249
250/**
251 * @since 1.0.0

Callers 1

UnionUnifyFunction · 0.85

Calls 2

extractUnionTypesFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected