CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 19:14:08 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"1fba1e0cbab656ce37fefce1567f2d80"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=l3lO8ON1if2tX3ZDyUSpVexwSvqLHisOrbs%2B593mrUMp9woXFr6oMrbiHedXv0N0Rh1AItq43%2Fn2KrVulo1ok4a72qsufXQqu%2BO46IOEMGVZ%2FpMzpThItqDsiykmqI9fVhM9e3mThjL3ru5leRmxAqS6AqRcj3EliggxNTMQz1%2B08rjNTInSHXTTOluCeqdpa3yoerKJzf3lDOcyk3StxGd5rrk%2BE0rWC8236kO%2B06JEYYmCqyZIzUmGH7YpCqoAkzOryOlAf30h5XECNbDvZQ%3D%3D--ZINzQZWeR76NXYN0--5qlSr77uH1XjBDqh0ZWk8g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1013354277.1752866047; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 19:14:07 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 19:14:07 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BF6E:3A991D:EC458:128B9F:687A9CFF
More specific inference for constrained 'infer' types in template lit… · microsoft/TypeScript@ba45252 · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit ba45252
authored
More specific inference for constrained 'infer' types in template literal types (#48094)
* More specific inference for constrained 'infer' types in template literal types
* PR feedback
* Add inference priority for template type placeholders
* Infer to a preferred constraint instead of a union
* Add reduceType
* Switch tests to use infer..extends
* Add missing primitive constraint cases
* Update .types tests
* Remove TemplateTypePlaceholderPriority
* Remove reduceType1 parent 38631e6 commit ba45252Copy full SHA for ba45252
File tree
Expand file treeCollapse file tree
7 files changed
+2691
-7
lines changedFilter options
- src/compiler
- tests
- baselines/reference
- cases/conformance/types/literal
Expand file treeCollapse file tree
7 files changed
+2691
-7
lines changed+87-6Lines changed: 87 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22112 | 22112 |
| |
22113 | 22113 |
| |
22114 | 22114 |
| |
22115 |
| - | |
| 22115 | + | |
| 22116 | + | |
| 22117 | + | |
| 22118 | + | |
| 22119 | + | |
| 22120 | + | |
| 22121 | + | |
| 22122 | + | |
| 22123 | + | |
| 22124 | + | |
| 22125 | + | |
| 22126 | + | |
| 22127 | + | |
| 22128 | + | |
| 22129 | + | |
| 22130 | + | |
| 22131 | + | |
| 22132 | + | |
| 22133 | + | |
| 22134 | + | |
| 22135 | + | |
| 22136 | + | |
| 22137 | + | |
| 22138 | + | |
| 22139 | + | |
| 22140 | + | |
| 22141 | + | |
22116 | 22142 |
| |
22117 | 22143 |
| |
22118 | 22144 |
| |
22119 | 22145 |
| |
22120 | 22146 |
| |
22121 |
| - | |
| 22147 | + | |
| 22148 | + | |
22122 | 22149 |
| |
22123 | 22150 |
| |
22124 | 22151 |
| |
| |||
22127 | 22154 |
| |
22128 | 22155 |
| |
22129 | 22156 |
| |
22130 |
| - | |
| 22157 | + | |
| 22158 | + | |
22131 | 22159 |
| |
22132 | 22160 |
| |
22133 | 22161 |
| |
| |||
22136 | 22164 |
| |
22137 | 22165 |
| |
22138 | 22166 |
| |
22139 |
| - | |
22140 |
| - | |
| 22167 | + | |
| 22168 | + | |
22141 | 22169 |
| |
22142 | 22170 |
| |
22143 | 22171 |
| |
| |||
22715 | 22743 |
| |
22716 | 22744 |
| |
22717 | 22745 |
| |
22718 |
| - | |
| 22746 | + | |
| 22747 | + | |
| 22748 | + | |
| 22749 | + | |
| 22750 | + | |
| 22751 | + | |
| 22752 | + | |
| 22753 | + | |
| 22754 | + | |
| 22755 | + | |
| 22756 | + | |
| 22757 | + | |
| 22758 | + | |
| 22759 | + | |
| 22760 | + | |
| 22761 | + | |
| 22762 | + | |
| 22763 | + | |
| 22764 | + | |
| 22765 | + | |
| 22766 | + | |
| 22767 | + | |
| 22768 | + | |
| 22769 | + | |
| 22770 | + | |
| 22771 | + | |
| 22772 | + | |
| 22773 | + | |
| 22774 | + | |
| 22775 | + | |
| 22776 | + | |
| 22777 | + | |
| 22778 | + | |
| 22779 | + | |
| 22780 | + | |
| 22781 | + | |
| 22782 | + | |
| 22783 | + | |
| 22784 | + | |
| 22785 | + | |
| 22786 | + | |
| 22787 | + | |
| 22788 | + | |
| 22789 | + | |
| 22790 | + | |
| 22791 | + | |
| 22792 | + | |
| 22793 | + | |
| 22794 | + | |
| 22795 | + | |
| 22796 | + | |
| 22797 | + | |
| 22798 | + | |
| 22799 | + | |
22719 | 22800 |
| |
22720 | 22801 |
| |
22721 | 22802 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5877 | 5877 |
| |
5878 | 5878 |
| |
5879 | 5879 |
| |
5880 |
| - | |
| 5880 | + | |
5881 | 5881 |
| |
5882 | 5882 |
| |
5883 | 5883 |
| |
|
You can’t perform that action at this time.
0 commit comments