const Status = S.transform(
S.Literal("Ready", "InProgress")
S.Union(
Ready,
InProgress,
),
{
strict: true,
decode: (literal) => ({
"Ready": new Ready(),
"InProgress": new InProgress(),
})[literal],
encode: (status) => ({
Ready: "Ready",
InProgress: "InProgress",
} as const)[status._tag]
}
);
const Status = S.transform(
S.Literal("Ready", "InProgress")
S.Union(
Ready,
InProgress,
),
{
strict: true,
decode: (literal) => ({
"Ready": new Ready(),
"InProgress": new InProgress(),
})[literal],
encode: (status) => ({
Ready: "Ready",
InProgress: "InProgress",
} as const)[status._tag]
}
);