Skip to content

v1.0.0

Compare
Choose a tag to compare
@sachinraja sachinraja released this 26 Apr 23:53
· 62 commits to main since this release
09afc8a

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

New Contributors

Full Changelog: v0.2.2...v1.0.0