Hi,
The readme (https://github.com/traversable/schema/tree/main/packages/zod#zxdeeppartial) says by default deepPartial adjusts the type, but it's not. I do have:
type MySchema = {
a: number;
b: {
c: string;
};
}
I have to use applyToOutputType into deepPartial so the type is:
type MySchema = {
a?: number | undefined;
b?: {
c?: string | undefined;
} | undefined;
}
So I guess at least the documentation should be fixed. Note that the official zod deepPartial in v3 was adjusting the type by default, so I would have thought applyToOutputType would be the default, and not semantic (that does no adjustment).
Thank you,