Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
})
|
||||
|
||||
const representation = Schema.toRepresentation(schema)
|
||||
|
||||
SchemaRepresentation.toCodeDocument(SchemaRepresentation.toMultiDocument(representation))
|
||||
Reference in New Issue
Block a user