CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 14:47:05 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/"ebf45e162a9b343b0cd9e02cd464ca61"
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=WqYAURWtCa7vbmN3YkCNsiFRhJT0tnoG%2FA5jFZsQZ4Fw4rgnmtbndFZzl%2BjQr8s1gxFtaZVsEURo6rfaAbhMeL09F0lx0i5E1QS0wzInEASPZn5Vp9U3MQwIpeVFZk4%2FvzGpj8rijoYflpPPNfem3jT4wNSkWlgB3tMtoxDC61x7PdgEWj0cfYkk3tx43JJPByzP4%2F3B9%2B5dO%2FEahN9Yoo%2Bo1%2BqItCmiKGo0BC6TipzjVZ9uIfPN4J%2B6vxxfzeh9hcHc0wllMP5fKz4y481LAw%3D%3D--yYXK58sU%2BRuk2Q1V--1vI%2FtTjxGROhlyBEUCYblQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1157127725.1752936423; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 14:47:03 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 14:47:03 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: EA2C:16AA4:50669B:6360D0:687BAFE7
Import assertion (#40698) · microsoft/TypeScript@ec114b8 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit ec114b8
Import assertion (#40698)
* Add parsing
* fix all api
* check gramma of import call
* Add more part of assertion
* Add some case
* Add baseline
* use module insted of target
* strip assertion in d.ts
* Update new baseline
* accept baseline
* Revert error number changes
* Update diagnostic message
* Accept baseline
* rename path
* Fix cr issues
* Accept baseline
* Accept baseline
* Error if assertion and typeonly import
* Accept baseline
* Make lint happy
* Add some comment
* Fix cr issues
* Fix more issue
* Incorporate PR feedback, fix module resolution for import()
* Add contextual type and completions for ImportCall options argument
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>1 parent 5ef0439 commit ec114b8Copy full SHA for ec114b8
File tree
Expand file treeCollapse file tree
86 files changed
+2954
-605
lines changedFilter options
- src
- compiler
- factory
- transformers
- module
- deprecatedCompat
- harness
- lib
- services
- codefixes
- refactors
- testRunner/unittests
- tests
- baselines/reference
- api
- cases
- conformance/importAssertion
- fourslash
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
86 files changed
+2954
-605
lines changed+62-17Lines changed: 62 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
933 | 933 |
| |
934 | 934 |
| |
935 | 935 |
| |
| 936 | + | |
936 | 937 |
| |
937 | 938 |
| |
938 | 939 |
| |
| |||
6568 | 6569 |
| |
6569 | 6570 |
| |
6570 | 6571 |
| |
6571 |
| - | |
| 6572 | + | |
6572 | 6573 |
| |
6573 | 6574 |
| |
6574 | 6575 |
| |
| |||
6600 | 6601 |
| |
6601 | 6602 |
| |
6602 | 6603 |
| |
6603 |
| - | |
| 6604 | + | |
| 6605 | + | |
6604 | 6606 |
| |
6605 | 6607 |
| |
6606 | 6608 |
| |
| |||
7260 | 7262 |
| |
7261 | 7263 |
| |
7262 | 7264 |
| |
7263 |
| - | |
| 7265 | + | |
| 7266 | + | |
7264 | 7267 |
| |
7265 | 7268 |
| |
7266 | 7269 |
| |
| |||
7336 | 7339 |
| |
7337 | 7340 |
| |
7338 | 7341 |
| |
7339 |
| - | |
| 7342 | + | |
| 7343 | + | |
7340 | 7344 |
| |
7341 | 7345 |
| |
7342 | 7346 |
| |
7343 | 7347 |
| |
7344 | 7348 |
| |
7345 | 7349 |
| |
7346 | 7350 |
| |
7347 |
| - | |
| 7351 | + | |
| 7352 | + | |
7348 | 7353 |
| |
7349 | 7354 |
| |
7350 | 7355 |
| |
| |||
7369 | 7374 |
| |
7370 | 7375 |
| |
7371 | 7376 |
| |
7372 |
| - | |
| 7377 | + | |
| 7378 | + | |
7373 | 7379 |
| |
7374 | 7380 |
| |
7375 | 7381 |
| |
| |||
13455 | 13461 |
| |
13456 | 13462 |
| |
13457 | 13463 |
| |
| 13464 | + | |
| 13465 | + | |
| 13466 | + | |
| 13467 | + | |
13458 | 13468 |
| |
13459 | 13469 |
| |
13460 | 13470 |
| |
| |||
25547 | 25557 |
| |
25548 | 25558 |
| |
25549 | 25559 |
| |
| 25560 | + | |
| 25561 | + | |
| 25562 | + | |
| 25563 | + | |
| 25564 | + | |
| 25565 | + | |
25550 | 25566 |
| |
25551 | 25567 |
| |
25552 | 25568 |
| |
| |||
26007 | 26023 |
| |
26008 | 26024 |
| |
26009 | 26025 |
| |
26010 |
| - | |
26011 |
| - | |
26012 |
| - | |
26013 |
| - | |
26014 | 26026 |
| |
26015 | 26027 |
| |
26016 | 26028 |
| |
| |||
30606 | 30618 |
| |
30607 | 30619 |
| |
30608 | 30620 |
| |
| 30621 | + | |
30609 | 30622 |
| |
30610 | 30623 |
| |
| 30624 | + | |
30611 | 30625 |
| |
30612 |
| - | |
| 30626 | + | |
30613 | 30627 |
| |
30614 | 30628 |
| |
30615 | 30629 |
| |
30616 | 30630 |
| |
30617 | 30631 |
| |
30618 | 30632 |
| |
30619 | 30633 |
| |
| 30634 | + | |
| 30635 | + | |
| 30636 | + | |
| 30637 | + | |
| 30638 | + | |
| 30639 | + | |
| 30640 | + | |
30620 | 30641 |
| |
30621 | 30642 |
| |
30622 | 30643 |
| |
| |||
39039 | 39060 |
| |
39040 | 39061 |
| |
39041 | 39062 |
| |
| 39063 | + | |
| 39064 | + | |
| 39065 | + | |
| 39066 | + | |
| 39067 | + | |
| 39068 | + | |
| 39069 | + | |
| 39070 | + | |
| 39071 | + | |
| 39072 | + | |
| 39073 | + | |
| 39074 | + | |
39042 | 39075 |
| |
39043 | 39076 |
| |
39044 | 39077 |
| |
| |||
39070 | 39103 |
| |
39071 | 39104 |
| |
39072 | 39105 |
| |
39073 |
| - | |
| 39106 | + | |
39074 | 39107 |
| |
39075 | 39108 |
| |
39076 | 39109 |
| |
| |||
39165 | 39198 |
| |
39166 | 39199 |
| |
39167 | 39200 |
| |
| 39201 | + | |
39168 | 39202 |
| |
39169 | 39203 |
| |
39170 | 39204 |
| |
| |||
43201 | 43235 |
| |
43202 | 43236 |
| |
43203 | 43237 |
| |
43204 |
| - | |
43205 |
| - | |
| 43238 | + | |
| 43239 | + | |
| 43240 | + | |
| 43241 | + | |
| 43242 | + | |
| 43243 | + | |
| 43244 | + | |
| 43245 | + | |
43206 | 43246 |
| |
43207 |
| - | |
| 43247 | + | |
| 43248 | + | |
| 43249 | + | |
| 43250 | + | |
| 43251 | + | |
43208 | 43252 |
| |
43209 | 43253 |
| |
43210 |
| - | |
43211 |
| - | |
| 43254 | + | |
| 43255 | + | |
| 43256 | + | |
43212 | 43257 |
| |
43213 | 43258 |
| |
43214 | 43259 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+14-2Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
924 | 924 |
| |
925 | 925 |
| |
926 | 926 |
| |
927 |
| - | |
| 927 | + | |
928 | 928 |
| |
929 | 929 |
| |
930 | 930 |
| |
931 |
| - | |
| 931 | + | |
932 | 932 |
| |
933 | 933 |
| |
934 | 934 |
| |
| |||
1388 | 1388 |
| |
1389 | 1389 |
| |
1390 | 1390 |
| |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
1391 | 1395 |
| |
1392 | 1396 |
| |
1393 | 1397 |
| |
| |||
3304 | 3308 |
| |
3305 | 3309 |
| |
3306 | 3310 |
| |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
3307 | 3319 |
| |
3308 | 3320 |
| |
3309 | 3321 |
| |
|
+31Lines changed: 31 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1515 | 1515 |
| |
1516 | 1516 |
| |
1517 | 1517 |
| |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1518 | 1522 |
| |
1519 | 1523 |
| |
1520 | 1524 |
| |
| |||
3322 | 3326 |
| |
3323 | 3327 |
| |
3324 | 3328 |
| |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
3325 | 3332 |
| |
3326 | 3333 |
| |
3327 | 3334 |
| |
| |||
3390 | 3397 |
| |
3391 | 3398 |
| |
3392 | 3399 |
| |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
3393 | 3403 |
| |
3394 | 3404 |
| |
3395 | 3405 |
| |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
3396 | 3427 |
| |
3397 | 3428 |
| |
3398 | 3429 |
| |
|
You can’t perform that action at this time.
0 commit comments