mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-04 03:35:36 +08:00
10 lines
228 B
TypeScript
10 lines
228 B
TypeScript
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 formatter = Schema.toFormatter(schema)
|