MCPcopy
hub / github.com/Effect-TS/effect / getTypes

Function getTypes

packages/effect/src/Schema.ts:3309–3309  ·  view source on GitHub ↗
(ast: AST.AST)

Source from the content-addressed store, hash-verified

3307 AST.Union.make(intersectUnionMembers([x], [y], path))
3308
3309const getTypes = (ast: AST.AST): ReadonlyArray<AST.AST> => AST.isUnion(ast) ? ast.types : [ast]
3310
3311const intersectUnionMembers = (
3312 xs: ReadonlyArray<AST.AST>,

Callers 1

intersectUnionMembersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected