mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-11 21:01:16 +02:00
10 lines
287 B
TypeScript
10 lines
287 B
TypeScript
import * as SchemaBinary from "effect/encoding/SchemaBinary"
|
|
import * as Schema from "effect/Schema"
|
|
|
|
const schema = Schema.Struct({
|
|
a: Schema.String,
|
|
b: Schema.optional(Schema.FiniteFromString),
|
|
c: Schema.Array(Schema.String)
|
|
})
|
|
|
|
export const codec = SchemaBinary.toCodec(schema)
|