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

Function Union

packages/effect/src/Schema.ts:4910–4915  ·  view source on GitHub ↗
(
  members: Members,
  options?: { mode?: "anyOf" | "oneOf" }
)

Source from the content-addressed store, hash-verified

4908 * @since 3.10.0
4909 */
4910export function Union<const Members extends ReadonlyArray<Constraint>>(
4911 members: Members,
4912 options?: { mode?: "anyOf" | "oneOf" }
4913): Union<Members> {
4914 return makeUnion(SchemaAST.union(members, options?.mode ?? "anyOf", undefined), members)
4915}
4916
4917/**
4918 * Type-level representation returned by {@link Literals}.

Callers 9

ArrayEnsureFunction · 0.70
mapMembersFunction · 0.70
transformFunction · 0.70
Schema.tsFile · 0.70
TaggedUnionFunction · 0.70
OptionFunction · 0.70
ResultFunction · 0.70
CauseReasonFunction · 0.70
ExitFunction · 0.70

Calls 1

makeUnionFunction · 0.85

Tested by

no test coverage detected