-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Preserve generics in contextual types for rest arguments #44122
Conversation
@typescript-bot test this |
Heya @DanielRosenwasser, I've started to run the parallelized community code test suite on this PR at d54f580. You can monitor the build here. |
Heya @DanielRosenwasser, I've started to run the parallelized Definitely Typed test suite on this PR at d54f580. You can monitor the build here. |
Heya @DanielRosenwasser, I've started to run the extended test suite on this PR at d54f580. You can monitor the build here. |
Heya @DanielRosenwasser, I've started to run the perf test suite on this PR at d54f580. You can monitor the build here. Update: The results are in! |
@DanielRosenwasser Here they are:Comparison Report - master..44122
System
Hosts
Scenarios
Developer Information: |
The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master. |
# Conflicts: # src/compiler/checker.ts
This PR ensures that generics are preserved in contextual types for arguments to rest parameters with union types. The PR additionally cleans up the
getIndexedAccessType
andgetIndexedAccessTypeOrUndefined
functions which had grown quite unwieldy as a result of introducing the--noUncheckedIndexedAccess
compiler switch. Instead of multiple discreetboolean
arguments, all modifiers are now passed through theAccessFlags
enum.Fixes #44093.