@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 12 lines 304 Bytes
Raw
1 import * as Effect from "effect/Effect"
2 import * as Schema from "effect/Schema"
3
4 const schema = Schema.Struct({
5 a: Schema.String,
6 b: Schema.optional(Schema.FiniteFromString),
7 c: Schema.Array(Schema.String)
8 })
9
10 Schema.decodeUnknownEffect(schema)({ a: "a", b: 1, c: ["c"] }).pipe(
11 Effect.runFork
12 )