v1.0.1
Changes
Properties are now correctly handled as identifiers or string literals.
example input:
const schema = z.object({
'needs-quotes': z.string()
})
output before update (not valid TS):
{
needs-quotes: string
}
output after update:
{
"needs-quotes": string
}
Additionally, numeric values in enums are now handled correctly (only string values could be passed before).
Full Changelog: v1.0.0...v1.0.1