You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to get rid of enums in my codebase. So in the schema world this means having z.union([z.literal('...')]) or z.literal('...') instead of z.nativeEnum(...).
But it seems like this common replace syntax for enums is not supported by ts-to-zod.
Bug description
I try to get rid of
enum
s in my codebase. So in the schema world this means havingz.union([z.literal('...')])
orz.literal('...')
instead ofz.nativeEnum(...)
.But it seems like this common replace syntax for enums is not supported by ts-to-zod.
Input
Expected output
Actual output
Error: Unknown IndexedAccessTypeNode.objectType type
Versions
v4.9.5
v3.20.6
The text was updated successfully, but these errors were encountered: