-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Remove incorrect handling of intersections in getStringMappingType #53383
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
Conversation
@@ -29,12 +29,12 @@ options1[`foo/${path}`] = false; | |||
|
|||
// Lowercase<`foo/${Path}`> => `foo/${Lowercase<Path>}` | |||
declare const lowercasePath: Lowercase<`foo/${Path}`>; | |||
>lowercasePath : `foo/${Lowercase<string> & { _pathBrand: any; }}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this was wrong in #52836; the intersection here should not be getting lifted out of the string mapping.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@typescript-bot test this |
Heya @jakebailey, I've started to run the abridged perf test suite on this PR at 8a6843f. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the parallelized Definitely Typed test suite on this PR at 8a6843f. You can monitor the build here. |
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at 8a6843f. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at 8a6843f. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the extended test suite on this PR at 8a6843f. You can monitor the build here. |
@jakebailey Here are the results of running the user test suite comparing Everything looks good! |
@jakebailey Here they are:Comparison Report - main..53383
System
Hosts
Scenarios
Developer Information: |
Reading the DT logs ahead of time, it hit another npm timeout so this is going to fail to show that the error is fixed, unfortunately, unless I run it again. |
@typescript-bot run dt |
Heya @jakebailey, I've started to run the parallelized Definitely Typed test suite on this PR at 8a6843f. You can monitor the build here. Update: The results are in! |
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
Hey @jakebailey, the results of running the DT tests are ready. Main only errors:Package: fragmented-store
|
Removes the intended main-only errors, nice. |
Glad to know that the infra works! 😄 |
Fixes #53382
This line is no longer needed; I believe it's a relic of an earlier version of #52836 which more eagerly evaluated these intersections, but that's not what the final intent of the PR was.