t3-code-android-nightly/.repos/effect-smol/packages/tools/bundle/fixtures/schema-class.ts
Julius Marminge 108e01746c
Upgrade Effect and Alchemy betas (#4643)
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <codex@users.noreply.github.com>
2026-07-27 16:21:02 +02:00

12 lines
310 B
TypeScript

import * as Effect from "effect/Effect"
import * as Schema from "effect/Schema"
class A extends Schema.Class<A>("A")({
a: Schema.String,
b: Schema.optional(Schema.FiniteFromString),
c: Schema.Array(Schema.String)
}) {}
Schema.decodeUnknownEffect(A)({ a: "a", b: 1, c: ["c"] }).pipe(
Effect.runFork
)