Replies: 1 comment
-
Maybe someone had the same problem? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While trying to connect next-intl with zod, I was trying to augment the ZodCustomIssue interface from the Zod library to include types for i18n property within custom issue params for better autocomplete support in TypeScript. However, I'm encountering a TypeScript error stating that subsequent property declarations must have the same type.
For example, here I try to augment zod types:
error:
Is there a way to properly augment the ZodCustomIssue interface to include additional properties in params without encountering this TypeScript error?
For reference, type definition of
ZodCustomIssue
:environment:
Beta Was this translation helpful? Give feedback.
All reactions