CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 13:43:02 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/"2267c03603331a7b489874e3ca7f0835"
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=75S2s%2B5M3Qfr1GFc6CTQpCmvLhSMmIbUNLCkkmwM86t5LV%2BxTlZRNQ0ByHCdlm93NRMjWTpqGTDCArk2KaWxiY47%2Fpl27M1R2a8VXHTejWzu%2BUM6sUq58%2FyxhQn1MemhuxeWv0kkcOXNpiyrHOujTfUrH6J43ePEjjaXMUGzxz6dyEzB434PLbESXJpcn177jTeVVrt7aNCt4ldw7jf9bcaKDID0yRhOSw33KQ7oOsKTJZreRZkMJwwLJEgO3BH1DN2vTxn%2BXpNU2zLEzzlaFQ%3D%3D--QO5PtkaiNFOQTQvV--cv4FKwANE0ZDw9rYQycxQw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.379005830.1752932580; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 13:43:00 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 13:43:00 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B68E:21415F:5403F2:69407F:687BA0E4
Synthesize namespace records for proper esm interop (#19675) · microsoft/TypeScript@7e63150 · 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/module/es2015.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 7e63150
authored
Synthesize namespace records for proper esm interop (#19675)
* Integrate importStar and importDefault helpers
* Accept baselines
* Support dynamic imports, write helpers for umd module (and amd is possible) kinds
* Accept baselines
* Support AMD, use same helper initialization as is normal
* update typechecker to have errors on called imported namespaces and good error recovery with a quickfix
* Overhaul allowSyntheticDefaultExports to be safer
* Put the new behavior behind a flag
* Rename strictESM to ESMInterop
* ESMInterop -> ESModuleInterop, make default for tsc --init
* Rename ESMInterop -> ESModuleInterop in module.ts, add emit test (since fourslash doesnt do that)
* Remove erroneous semicolons from helper
* Reword diagnostic
* Change style
* Edit followup diagnostic
* Add secondary quickfix for call sites, tests forthcoming
* Add synth default to namespace import type, enhance quickfix
* Pair of spare tests for good measure
* Fix typos in diagnostic message
* Improve comment clarity
* Actually accept the updated changes to the esmodule interop description
* ESModule -> esModule
* Use find and not forEach
* Use guard
* Rely on implicit falsiness of Result.False
* These should have been emit flags1 parent 859f0e3 commit 7e63150Copy full SHA for 7e63150
File tree
Expand file treeCollapse file tree
65 files changed
+1019
-212
lines changedFilter options
- src
- compiler
- transformers
- module
- services/codefixes
- tests
- baselines/reference
- api
- tsConfig
- Default initialized TSConfig
- Initialized TSConfig with boolean value compiler options
- Initialized TSConfig with enum value compiler options
- Initialized TSConfig with files options
- Initialized TSConfig with incorrect compiler option value
- Initialized TSConfig with incorrect compiler option
- Initialized TSConfig with list compiler options with enum value
- Initialized TSConfig with list compiler options
- cases
- compiler
- 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
65 files changed
+1019
-212
lines changed+120-15Lines changed: 120 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1471 | 1471 |
| |
1472 | 1472 |
| |
1473 | 1473 |
| |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
1474 | 1511 |
| |
1475 | 1512 |
| |
1476 | 1513 |
| |
| |||
1480 | 1517 |
| |
1481 | 1518 |
| |
1482 | 1519 |
| |
1483 |
| - | |
1484 |
| - | |
1485 |
| - | |
1486 |
| - | |
| 1520 | + | |
1487 | 1521 |
| |
1488 | 1522 |
| |
1489 |
| - | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
1490 | 1526 |
| |
1491 | 1527 |
| |
1492 |
| - | |
| 1528 | + | |
| 1529 | + | |
1493 | 1530 |
| |
1494 | 1531 |
| |
1495 | 1532 |
| |
| |||
1889 | 1926 |
| |
1890 | 1927 |
| |
1891 | 1928 |
| |
1892 |
| - | |
1893 |
| - | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
1894 | 1963 |
| |
1895 | 1964 |
| |
1896 | 1965 |
| |
| |||
9452 | 9521 |
| |
9453 | 9522 |
| |
9454 | 9523 |
| |
| 9524 | + | |
| 9525 | + | |
| 9526 | + | |
| 9527 | + | |
| 9528 | + | |
| 9529 | + | |
| 9530 | + | |
| 9531 | + | |
| 9532 | + | |
| 9533 | + | |
| 9534 | + | |
9455 | 9535 |
| |
9456 | 9536 |
| |
9457 | 9537 |
| |
| |||
17320 | 17400 |
| |
17321 | 17401 |
| |
17322 | 17402 |
| |
17323 |
| - | |
| 17403 | + | |
17324 | 17404 |
| |
17325 | 17405 |
| |
17326 | 17406 |
| |
| |||
17410 | 17490 |
| |
17411 | 17491 |
| |
17412 | 17492 |
| |
17413 |
| - | |
| 17493 | + | |
17414 | 17494 |
| |
17415 | 17495 |
| |
17416 | 17496 |
| |
| |||
17457 | 17537 |
| |
17458 | 17538 |
| |
17459 | 17539 |
| |
| 17540 | + | |
| 17541 | + | |
| 17542 | + | |
| 17543 | + | |
| 17544 | + | |
| 17545 | + | |
| 17546 | + | |
| 17547 | + | |
| 17548 | + | |
| 17549 | + | |
| 17550 | + | |
| 17551 | + | |
| 17552 | + | |
| 17553 | + | |
| 17554 | + | |
| 17555 | + | |
| 17556 | + | |
| 17557 | + | |
| 17558 | + | |
| 17559 | + | |
| 17560 | + | |
| 17561 | + | |
17460 | 17562 |
| |
17461 | 17563 |
| |
17462 | 17564 |
| |
| |||
17474 | 17576 |
| |
17475 | 17577 |
| |
17476 | 17578 |
| |
17477 |
| - | |
| 17579 | + | |
17478 | 17580 |
| |
17479 | 17581 |
| |
17480 | 17582 |
| |
| |||
17531 | 17633 |
| |
17532 | 17634 |
| |
17533 | 17635 |
| |
| 17636 | + | |
17534 | 17637 |
| |
17535 | 17638 |
| |
17536 | 17639 |
| |
| |||
17785 | 17888 |
| |
17786 | 17889 |
| |
17787 | 17890 |
| |
17788 |
| - | |
| 17891 | + | |
17789 | 17892 |
| |
17790 | 17893 |
| |
17791 | 17894 |
| |
17792 | 17895 |
| |
17793 | 17896 |
| |
17794 |
| - | |
| 17897 | + | |
17795 | 17898 |
| |
17796 | 17899 |
| |
17797 | 17900 |
| |
17798 |
| - | |
| 17901 | + | |
| 17902 | + | |
| 17903 | + | |
17799 | 17904 |
| |
17800 | 17905 |
| |
17801 | 17906 |
| |
17802 | 17907 |
| |
17803 | 17908 |
| |
17804 | 17909 |
| |
17805 | 17910 |
| |
17806 |
| - | |
| 17911 | + | |
17807 | 17912 |
| |
17808 | 17913 |
| |
17809 | 17914 |
| |
|
src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts+9-1Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
402 | 402 |
| |
403 | 403 |
| |
404 | 404 |
| |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
405 | 412 |
| |
406 | 413 |
| |
407 | 414 |
| |
| |||
704 | 711 |
| |
705 | 712 |
| |
706 | 713 |
| |
707 |
| - | |
| 714 | + | |
| 715 | + | |
708 | 716 |
| |
709 | 717 |
| |
710 | 718 |
| |
|
+3-1Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2005 | 2005 |
| |
2006 | 2006 |
| |
2007 | 2007 |
| |
2008 |
| - | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
2009 | 2011 |
| |
2010 | 2012 |
| |
2011 | 2013 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+16Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3548 | 3548 |
| |
3549 | 3549 |
| |
3550 | 3550 |
| |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
3551 | 3559 |
| |
3552 | 3560 |
| |
3553 | 3561 |
| |
| |||
3906 | 3914 |
| |
3907 | 3915 |
| |
3908 | 3916 |
| |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
3909 | 3925 |
| |
3910 | 3926 |
|
+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1601 | 1601 |
| |
1602 | 1602 |
| |
1603 | 1603 |
| |
| 1604 | + | |
1604 | 1605 |
| |
1605 | 1606 |
| |
1606 | 1607 |
| |
|
src/compiler/transformers/module/es2015.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/module/es2015.ts+7-7Lines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
35 | 33 |
| |
| 34 | + | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
|
You can’t perform that action at this time.
0 commit comments