Converting `MySchema` to `DesiredSchema` in TypeScript
Hi,
is it possible to create a schema that can be converted to
is it possible to create a schema that can be converted to
DesiredSchema ?DesiredSchemaimport { Schema as S } from "@effect/schema"
type MySchema = typeof MySchema.Type
const MySchema =
S.Struct({
prop1: S.optional(S.Number)
})
type DesiredSchema = {
prop1?: number
}
function convert(input: MySchema): DesiredSchema {
return input;
}