Renaming Property in Struct Schema Without Changing Type
Hey. I have a schema that works. But now I want to rename a property in my struct schema. The issue is that as soon as I try to attach
.pipe(S.rename({formatOne: "format"}) it looks like it changes from a struct to a class, which destroys the resulting typing of the schema. How can I rename and keep the type as is? Code in comment.