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
Are you sure your .d.ts files are getting re-generated from your TypeScript source code? Or are these declarations handwritten? This seems to be an issue with having multiple Zod versions conflicting.
At the time we worked around the issue, but I recently noticed this issue was still open and we tried doing a clean install and re-generating our Typescript. The issue seemed to have resolved since the generated code now does not reference the z.extendShape at all.
My team recently noticed an issue that came up in the .d.ts files after zod compiled 1 of our schemas.
Original zod schema:
The output in our d.ts file:
The problem is that in the d.ts file Typescript cannot find the exported module extendShape:

Package versions:
Does anyone know why the d.ts files are generated with typescript errors?
The text was updated successfully, but these errors were encountered: