import { Schema as S } from "effect"
const Animal = S.Union(
S.TaggedStruct("Cow", {
moo: S.String,
}),
S.TaggedStruct("Dog", {
roof: S.String,
}),
)
const Dog = Animal.pipe(
S.extend(S.TaggedStruct("Cow", {})),
)
import { Schema as S } from "effect"
const Animal = S.Union(
S.TaggedStruct("Cow", {
moo: S.String,
}),
S.TaggedStruct("Dog", {
roof: S.String,
}),
)
const Dog = Animal.pipe(
S.extend(S.TaggedStruct("Cow", {})),
)