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

Types do not work with latest TypeScript version #981

Closed
ehmicky opened this issue Apr 21, 2024 · 0 comments · Fixed by #982
Closed

Types do not work with latest TypeScript version #981

ehmicky opened this issue Apr 21, 2024 · 0 comments · Fixed by #982

Comments

@ehmicky
Copy link
Collaborator

ehmicky commented Apr 21, 2024

It appears that the latest TypeScript version make the current types fail with:

TS2590: Expression produces a union type that is too complex to represent.

This was not detected by tsd because we use an older version which uses TypeScript 5.2.2. When upgrading tsd, TypeScript 5.4.5 is used instead, and the above error shows up.

I have done some heavy (and hours-long) debugging and it appears to be a TypeScript bug, which I filed in microsoft/TypeScript#58268.

Since this might take a while to fix in TypeScript, and we want to support former versions of TypeScript, the next step is to find a workaround so the above error does not show up.

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

Successfully merging a pull request may close this issue.

1 participant