t3-code-android-nightly/.repos/effect-smol/packages/tools/bundle/fixtures/schema-toCodeDocument.ts
2026-09-07 21:54:44 -07:00

10 lines
358 B
TypeScript

import * as Schema from "effect/Schema"
import * as SchemaRepresentation from "effect/SchemaRepresentation"
const schema = Schema.Struct({
a: Schema.String,
b: Schema.optional(Schema.FiniteFromString),
c: Schema.Array(Schema.String)
})
export const document = SchemaRepresentation.toCodeDocument(SchemaRepresentation.toRepresentations([schema.ast]))