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

Remove extra flattening of array literal #831

Merged
merged 2 commits into from
Jan 9, 2024
Merged

Conversation

scotttrinh
Copy link
Collaborator

While investigating compatibility with the latest version of TypeScript (5.3.3 at the moment), I was working against the main branch of TypeScript and found a case where e.literal was causing a TS2589: Type instantiation is excessively deep and possibly infinite. error.

There are additional issues on 5.3.3, but this was one that was detectable and fixable in isolation, so adding this fix now. Might be a fix for #782 but I haven't been able to repro that issue.

Not sure why there is a benchmark regression here. I'm also getting this against master, so maybe there are some weird environmental issues that affect the benchmarks and make them slightly non-deterministic? 🤷

@scotttrinh scotttrinh merged commit e0b9e5e into master Jan 9, 2024
8 checks passed
@scotttrinh scotttrinh deleted the fix-literal-2589 branch January 9, 2024 18:50
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 this pull request may close these issues.

1 participant