Flatten Nested Schema Structure During Decoding

export const Person = Schema.Struct({
  result: Schema.Struct({
    person: Schema.Struct({
      name: Schema.String
    })
  })
})


When decoding into a schema like this, it is possible to "ignore/remove" the result and person nests of the schema on decode, such that Person.Type becomes simply { name: string }? For my app I will never encode again, so I only need to worry about decoding
Was this page helpful?