CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 12:18:32 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/"3e88b388acab1bd5a2b072b139514cc7"
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=I99pVcvamjpB%2Bfj%2B1yRplKBiGxprSMqr1ZZ51loJtmFvqgcALkX9Zb3q93%2F5RVssNqegseZu6P6lEyrLl9s7iY%2FK3MOymqwg2L39NG1fDJjXlKRzZGDTGwtTquXBkONs9pXYGT0vhymczEHkQDYEbLnsjUPBEChzirsYw4MkD9yJFknpg0Ymviyc0rdXzjXWbfyiSCgEvQXo%2FI6UulnGFpIDZEfkG9PlaWizKaA6zb0PhYNhwVXk%2FR2DMfrzMiob1okp%2Blu8moFh2JzY5KU2wA%3D%3D--rvxpsHY01IC%2BDjRt--RpCmW2GyflKUqMnYFc98LA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.322051233.1752841110; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 12:18:30 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 12:18:30 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C204:16E104:E825A4:1155775:687A3B96
Type-only import specifiers (#45998) · microsoft/TypeScript@e160bc8 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeFactory.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/utilities.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit e160bc8
Type-only import specifiers (#45998)
* Parse type-only import specifiers
* Add type-only export specifiers
* Update transform and emit
* Update checking
* Fix elision when combined with importsNotUsedAsValues=preserve
* Accept baselines
* Add test
* WIP auto imports updates
* First auto-imports test working
* More auto-import tests
* Fix auto imports of type-only exports
* Add test for promoting type-only import
* Sort import/export specifiers by type-onlyness
* Update completions for `import { type |`
* Update other completions tests
* Respect organize imports sorting when promoting type-only to regular while adding a specifier
* Fix comment mistakes
* Update src/services/codefixes/importFixes.ts
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
* Rearrange some order of assignments in parser
* Split huge if statement
* Remove redundant check
* Update new transformer
* Fix import statement completions
* Fix type keyword completions good grief
* Fix last tests
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>1 parent 26aef89 commit e160bc8Copy full SHA for e160bc8
File tree
Expand file treeCollapse file tree
80 files changed
+1841
-348
lines changedFilter options
- src
- compiler
- factory
- transformers
- module
- services
- codefixes
- refactors
- testRunner
- unittests
- services
- tests
- baselines/reference
- api
- cases
- conformance/externalModules/typeOnly
- fourslash
- server
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
80 files changed
+1841
-348
lines changed+41-22Lines changed: 41 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
721 | 721 |
| |
722 | 722 |
| |
723 | 723 |
| |
| 724 | + | |
724 | 725 |
| |
725 | 726 |
| |
726 | 727 |
| |
| |||
2203 | 2204 |
| |
2204 | 2205 |
| |
2205 | 2206 |
| |
2206 |
| - | |
2207 |
| - | |
| 2207 | + | |
2208 | 2208 |
| |
2209 | 2209 |
| |
2210 | 2210 |
| |
| |||
2222 | 2222 |
| |
2223 | 2223 |
| |
2224 | 2224 |
| |
2225 |
| - | |
| 2225 | + | |
2226 | 2226 |
| |
2227 | 2227 |
| |
2228 | 2228 |
| |
| |||
2590 | 2590 |
| |
2591 | 2591 |
| |
2592 | 2592 |
| |
2593 |
| - | |
| 2593 | + | |
2594 | 2594 |
| |
2595 | 2595 |
| |
2596 | 2596 |
| |
2597 | 2597 |
| |
2598 | 2598 |
| |
2599 | 2599 |
| |
2600 | 2600 |
| |
2601 |
| - | |
2602 |
| - | |
2603 |
| - | |
| 2601 | + | |
2604 | 2602 |
| |
2605 | 2603 |
| |
2606 | 2604 |
| |
| |||
3054 | 3052 |
| |
3055 | 3053 |
| |
3056 | 3054 |
| |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
3057 | 3058 |
| |
3058 | 3059 |
| |
3059 | 3060 |
| |
3060 | 3061 |
| |
3061 |
| - | |
3062 |
| - | |
3063 |
| - | |
3064 | 3062 |
| |
3065 | 3063 |
| |
3066 | 3064 |
| |
| |||
3094 | 3092 |
| |
3095 | 3093 |
| |
3096 | 3094 |
| |
3097 |
| - | |
| 3095 | + | |
3098 | 3096 |
| |
3099 | 3097 |
| |
3100 | 3098 |
| |
| |||
6536 | 6534 |
| |
6537 | 6535 |
| |
6538 | 6536 |
| |
6539 |
| - | |
| 6537 | + | |
6540 | 6538 |
| |
6541 | 6539 |
| |
6542 | 6540 |
| |
| |||
6794 | 6792 |
| |
6795 | 6793 |
| |
6796 | 6794 |
| |
6797 |
| - | |
| 6795 | + | |
6798 | 6796 |
| |
6799 | 6797 |
| |
6800 | 6798 |
| |
| |||
6832 | 6830 |
| |
6833 | 6831 |
| |
6834 | 6832 |
| |
6835 |
| - | |
| 6833 | + | |
6836 | 6834 |
| |
6837 | 6835 |
| |
6838 | 6836 |
| |
| |||
6892 | 6890 |
| |
6893 | 6891 |
| |
6894 | 6892 |
| |
6895 |
| - | |
| 6893 | + | |
6896 | 6894 |
| |
6897 | 6895 |
| |
6898 | 6896 |
| |
| |||
7031 | 7029 |
| |
7032 | 7030 |
| |
7033 | 7031 |
| |
7034 |
| - | |
| 7032 | + | |
7035 | 7033 |
| |
7036 | 7034 |
| |
7037 | 7035 |
| |
| |||
7137 | 7135 |
| |
7138 | 7136 |
| |
7139 | 7137 |
| |
7140 |
| - | |
| 7138 | + | |
7141 | 7139 |
| |
7142 | 7140 |
| |
7143 | 7141 |
| |
| |||
7313 | 7311 |
| |
7314 | 7312 |
| |
7315 | 7313 |
| |
| 7314 | + | |
7316 | 7315 |
| |
7317 | 7316 |
| |
7318 | 7317 |
| |
| |||
7424 | 7423 |
| |
7425 | 7424 |
| |
7426 | 7425 |
| |
| 7426 | + | |
7427 | 7427 |
| |
7428 | 7428 |
| |
7429 | 7429 |
| |
| |||
7470 | 7470 |
| |
7471 | 7471 |
| |
7472 | 7472 |
| |
7473 |
| - | |
| 7473 | + | |
7474 | 7474 |
| |
7475 | 7475 |
| |
7476 | 7476 |
| |
| |||
39415 | 39415 |
| |
39416 | 39416 |
| |
39417 | 39417 |
| |
39418 |
| - | |
39419 |
| - | |
39420 |
| - | |
| 39418 | + | |
| 39419 | + | |
| 39420 | + | |
| 39421 | + | |
| 39422 | + | |
| 39423 | + | |
| 39424 | + | |
39421 | 39425 |
| |
39422 |
| - | |
| 39426 | + | |
39423 | 39427 |
| |
39424 | 39428 |
| |
39425 | 39429 |
| |
| |||
43445 | 43449 |
| |
43446 | 43450 |
| |
43447 | 43451 |
| |
| 43452 | + | |
| 43453 | + | |
| 43454 | + | |
43448 | 43455 |
| |
43449 | 43456 |
| |
43450 | 43457 |
| |
| 43458 | + | |
| 43459 | + | |
| 43460 | + | |
| 43461 | + | |
| 43462 | + | |
| 43463 | + | |
| 43464 | + | |
| 43465 | + | |
| 43466 | + | |
| 43467 | + | |
| 43468 | + | |
| 43469 | + | |
43451 | 43470 |
| |
43452 | 43471 |
| |
43453 | 43472 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1434 | 1434 |
| |
1435 | 1435 |
| |
1436 | 1436 |
| |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
1437 | 1445 |
| |
1438 | 1446 |
| |
1439 | 1447 |
| |
|
+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3441 | 3441 |
| |
3442 | 3442 |
| |
3443 | 3443 |
| |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
3444 | 3448 |
| |
3445 | 3449 |
| |
3446 | 3450 |
| |
|
src/compiler/factory/nodeFactory.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeFactory.ts+13-9Lines changed: 13 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4089 | 4089 |
| |
4090 | 4090 |
| |
4091 | 4091 |
| |
4092 |
| - | |
| 4092 | + | |
4093 | 4093 |
| |
| 4094 | + | |
4094 | 4095 |
| |
4095 | 4096 |
| |
4096 | 4097 |
| |
| |||
4101 | 4102 |
| |
4102 | 4103 |
| |
4103 | 4104 |
| |
4104 |
| - | |
4105 |
| - | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
4106 | 4108 |
| |
4107 |
| - | |
| 4109 | + | |
4108 | 4110 |
| |
4109 | 4111 |
| |
4110 | 4112 |
| |
| |||
4205 | 4207 |
| |
4206 | 4208 |
| |
4207 | 4209 |
| |
4208 |
| - | |
| 4210 | + | |
4209 | 4211 |
| |
| 4212 | + | |
4210 | 4213 |
| |
4211 | 4214 |
| |
4212 | 4215 |
| |
| |||
4217 | 4220 |
| |
4218 | 4221 |
| |
4219 | 4222 |
| |
4220 |
| - | |
4221 |
| - | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
4222 | 4226 |
| |
4223 |
| - | |
| 4227 | + | |
4224 | 4228 |
| |
4225 | 4229 |
| |
4226 | 4230 |
| |
| |||
5488 | 5492 |
| |
5489 | 5493 |
| |
5490 | 5494 |
| |
5491 |
| - | |
| 5495 | + | |
5492 | 5496 |
| |
5493 | 5497 |
| |
5494 | 5498 |
| |
|
src/compiler/factory/utilities.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/utilities.ts+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
500 | 500 |
| |
501 | 501 |
| |
502 | 502 |
| |
503 |
| - | |
504 |
| - | |
| 503 | + | |
| 504 | + | |
505 | 505 |
| |
506 | 506 |
| |
507 | 507 |
| |
|
You can’t perform that action at this time.
0 commit comments