Transforming and Composing Schemas with Property Name Changes in TypeScript
Changing a property name between input/output of a schema and composing this with another struct (please refer me to another issue/docs if this is described else where)
My current attempt:
This leads to
But I don't quite understand why. The props are not overlapping. Is there a different way to accomplish this composition? (basically changing a prop name, in this case its string -> string but this can be any -> any schema too under a different prop name)
My current attempt:
This leads to
But I don't quite understand why. The props are not overlapping. Is there a different way to accomplish this composition? (basically changing a prop name, in this case its string -> string but this can be any -> any schema too under a different prop name)
