v1.0.0
Changes
Optionals are now correctly generated in accordance with Zod's z.infer
.
For example, if we have this schema:
const schema = z.object({
foo: z.number().optional()
})
previously this was generated:
{
foo: number | undefined
}
after this update, this is generated:
{
foo?: number | undefined
}
PRs
- fix handling of optionals in objects by @NoahDavey in #11
New Contributors
- @mordv made their first contribution in #9
- @NoahDavey made their first contribution in #11
Full Changelog: v0.2.2...v1.0.0