CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 11:33:23 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/"252d20ef0bda9bee20dd1ee87decf194"
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=BP%2F60Wq8IkvqgsL%2FlyUBZW3y7XjRTKYFuGcC%2FcnGcSubnaoSH83k2pN1R1iQf8KoqIXEj27iNCKIt05NME9q%2Fq1G87idJf7x2fHFRIO%2BuNrXCAAo5jNGwrAJioFak6FDhoK3%2FcVnoZU8gk7d%2Fw84hBsvbmk%2BKGTkp4V9szc%2BX1Y5VBibeWJfgnAxnHgvBTDFSewemCDVyxeg5BQhSZG28y%2BrlLBgQFuKSibbaOoQHTYxjU06sPEWRt%2Ffnitnrkxog2b0BPEbOi%2BtoFZaVo%2F3kw%3D%3D--NaHPIFtyhNWfa11v--Z7JyWjq44pEe2yGVpLIQUQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1002378443.1753270400; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 11:33:20 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 11:33:20 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8F20:B5FA6:A64CD4:C79746:6880C880
Update type-only import semantics to allow type queries (#36092) · microsoft/TypeScript@b05dde7 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/transformers/ts.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts
Copy file name to clipboardExpand all lines: src/services/symbolDisplay.ts
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit b05dde7
authored
Update type-only import semantics to allow type queries (#36092)
* Change type-only semantics to allow type queries
* Don’t error using type-only import in ambient context
* Fix default import
* Fix namespace import
* Update more baselines
* Prevent circular resolution
* Track const enum expression usage
* Update baselines
* Perf tuning 1
* Test commit for perf impact
* Weave type-only alias declaration finding into alias resolution
* Fix namespace import of type-only exported symbols
* type-only exports do not contribute to the module object type
* Update APIs
* Fix enum casing, remove type-only conversion suggestion
* Short circuit type-only checks in resolveEntityName faster
* Fix casing in API
* Remove unused parameter
* Fix error on qualified names in type queries
* Allow type-only imports in computed property names
* Fix computed property names of types and abstract members
* Remove unused util
* Commit missing baselines
* Rename “check” functions so as not to overload the word “check”1 parent 0276e7f commit b05dde7Copy full SHA for b05dde7
File tree
Expand file treeCollapse file tree
76 files changed
+1406
-326
lines changedFilter options
- src
- compiler
- transformers
- services
- tests
- baselines/reference
- api
- cases/conformance/externalModules/typeOnly
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
76 files changed
+1406
-326
lines changed+131-156Lines changed: 131 additions & 156 deletions
Large diffs are not rendered by default.
src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
475 | 475 |
| |
476 | 476 |
| |
477 | 477 |
| |
478 |
| - | |
479 |
| - | |
480 |
| - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
481 | 481 |
| |
482 | 482 |
| |
483 | 483 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+15-7Lines changed: 15 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1055 | 1055 |
| |
1056 | 1056 |
| |
1057 | 1057 |
| |
1058 |
| - | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1059 | 1063 |
| |
1060 | 1064 |
| |
1061 | 1065 |
| |
1062 |
| - | |
| 1066 | + | |
1063 | 1067 |
| |
1064 | 1068 |
| |
1065 | 1069 |
| |
| |||
1099 | 1103 |
| |
1100 | 1104 |
| |
1101 | 1105 |
| |
1102 |
| - | |
1103 |
| - | |
1104 |
| - | |
1105 |
| - | |
1106 | 1106 |
| |
1107 | 1107 |
| |
1108 | 1108 |
| |
| |||
1115 | 1115 |
| |
1116 | 1116 |
| |
1117 | 1117 |
| |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1118 | 1126 |
| |
1119 | 1127 |
| |
1120 |
| - | |
| 1128 | + | |
1121 | 1129 |
| |
1122 | 1130 |
| |
1123 | 1131 |
| |
|
src/compiler/transformers/ts.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/ts.ts+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2778 | 2778 |
| |
2779 | 2779 |
| |
2780 | 2780 |
| |
2781 |
| - | |
2782 |
| - | |
| 2781 | + | |
| 2782 | + | |
2783 | 2783 |
| |
2784 | 2784 |
| |
2785 | 2785 |
| |
| |||
2931 | 2931 |
| |
2932 | 2932 |
| |
2933 | 2933 |
| |
2934 |
| - | |
| 2934 | + | |
2935 | 2935 |
| |
2936 | 2936 |
| |
2937 | 2937 |
| |
|
+6-3Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2538 | 2538 |
| |
2539 | 2539 |
| |
2540 | 2540 |
| |
| 2541 | + | |
2541 | 2542 |
| |
2542 | 2543 |
| |
2543 | 2544 |
| |
| |||
4062 | 4063 |
| |
4063 | 4064 |
| |
4064 | 4065 |
| |
4065 |
| - | |
| 4066 | + | |
| 4067 | + | |
4066 | 4068 |
| |
4067 | 4069 |
| |
4068 | 4070 |
| |
| |||
4085 | 4087 |
| |
4086 | 4088 |
| |
4087 | 4089 |
| |
| 4090 | + | |
4088 | 4091 |
| |
4089 | 4092 |
| |
4090 | 4093 |
| |
| |||
5046 | 5049 |
| |
5047 | 5050 |
| |
5048 | 5051 |
| |
5049 |
| - | |
| 5052 | + | |
5050 | 5053 |
| |
5051 | 5054 |
| |
5052 | 5055 |
| |
| |||
5168 | 5171 |
| |
5169 | 5172 |
| |
5170 | 5173 |
| |
5171 |
| - | |
| 5174 | + | |
5172 | 5175 |
| |
5173 | 5176 |
| |
5174 | 5177 |
| |
|
+44-8Lines changed: 44 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 | 47 |
| |
56 | 48 |
| |
57 | 49 |
| |
| |||
1779 | 1771 |
| |
1780 | 1772 |
| |
1781 | 1773 |
| |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
1782 | 1795 |
| |
1783 | 1796 |
| |
1784 | 1797 |
| |
| |||
2285 | 2298 |
| |
2286 | 2299 |
| |
2287 | 2300 |
| |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
2288 | 2314 |
| |
2289 | 2315 |
| |
2290 | 2316 |
| |
| |||
2734 | 2760 |
| |
2735 | 2761 |
| |
2736 | 2762 |
| |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
2737 | 2773 |
| |
2738 | 2774 |
| |
2739 | 2775 |
| |
|
src/compiler/utilitiesPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts+6-7Lines changed: 6 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1721 | 1721 |
| |
1722 | 1722 |
| |
1723 | 1723 |
| |
1724 |
| - | |
1725 |
| - | |
1726 |
| - | |
1727 |
| - | |
1728 |
| - | |
| 1724 | + | |
| 1725 | + | |
1729 | 1726 |
| |
1730 | 1727 |
| |
1731 |
| - | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1732 | 1731 |
| |
1733 |
| - | |
| 1732 | + | |
1734 | 1733 |
| |
1735 | 1734 |
| |
1736 | 1735 |
| |
|
src/services/symbolDisplay.ts
Copy file name to clipboardExpand all lines: src/services/symbolDisplay.ts-9Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 | 5 |
| |
10 | 6 |
| |
11 | 7 |
| |
| |||
125 | 121 |
| |
126 | 122 |
| |
127 | 123 |
| |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 | 124 |
| |
134 | 125 |
| |
135 | 126 |
| |
|
tests/baselines/reference/ambient.js
Copy file name to clipboard+25Lines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + |
tests/baselines/reference/ambient.symbols
Copy file name to clipboard+21Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + |
You can’t perform that action at this time.
0 commit comments