Repository navigation
Negated Types: Remove the TypeFacts abstraction and make type refinements directly - #65298
Wesley Wigham (weswigham) wants to merge 26 commits into
Conversation
…t literal handling
Deduplicate fresh negations against their regular counterparts during union collection and intersection insertion. Preserve the first intersection position and ordered-set membership when replacing a fresh member, while leaving standalone fresh negations eligible for widening. Add compiler coverage for explicit exclusions, generic array narrowing, both union operand orders, and fresh-only widening.
…ntial structures, broaden negation reduction applicability
|
TypeScript Bot (@typescript-bot) test this |
|
Hey Wesley Wigham (@weswigham), this PR is in an unmergable state, so is missing a merge commit to run against; please resolve conflicts and try again. |
7b3a1af to
4c12244
Compare
|
TypeScript Bot (@typescript-bot) test this |
|
Hey Wesley Wigham (@weswigham), the results of running the DT tests are ready. There were interesting changes: Branch only errors:
|
|
Wesley Wigham (@weswigham) Here are the results of running the user tests with tsc comparing Something interesting changed - please have a look. Details
|
|
Wesley Wigham (@weswigham) Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Wesley Wigham (@weswigham) Here are the results of running the top 400 repos with tsc comparing Something interesting changed - please have a look. Details
|
|
Wesley Wigham (@weswigham) Here are some more interesting changes from running the top 400 repos suite Details
|
|
TypeScript Bot (@typescript-bot) pack this |
|
Hey, Wesley Wigham (@weswigham)! I've packed 4c12244 into an installable package. You can install it for testing by referencing it in your {
"devDependencies": {
"typescript": "npm:@typescript-deploys/pr-build@7.1.0-pr.65298.9"
}
}and then running There is also a playground for this build. |
|
Experiment done, work will continue in #64375 - this one's not gonna be taken. It's a big perf loss, even if conceptually building types is "sufficient". |
Negated types allow us to create refinements that function on generic types without a dedicated fact-propagation mechanism.
This is less bad, implementation-wise, than it was 5 years ago, thanks to improvements we've made to control flow since then, but we'll see how it is for performance.