Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile with latest version of TypeScript #68

Open
DavidRigglemanININ opened this issue Oct 30, 2024 · 1 comment
Open

Fails to compile with latest version of TypeScript #68

DavidRigglemanININ opened this issue Oct 30, 2024 · 1 comment

Comments

@DavidRigglemanININ
Copy link

When upgrading to the latest version of TypeScript (5.6.3), I get the following error

node_modules/myzod/libs/types.d.ts:50:146 - error TS2589: Type instantiation is excessively deep and possibly infinite.

50 type ArrayIntersection<A1 extends ArrayType<any>, A2 extends ArrayType<any>> = A1 extends ArrayType<infer S1> ? A2 extends ArrayType<infer S2> ? ArrayType<IntersectionResult<S1, S2>> : never : never;
                                                                                                                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The last known good version I've found is 5.3.3

@davidmdm
Copy link
Owner

davidmdm commented Nov 4, 2024

This happens from time to time whenever typescript changes their heuristics around type instantiating. A user once provided a fix for it, I'll need to look it up and see if it can work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants