CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 00:23:52 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/"bd8ae49bc6964b8ea685f60d4ab4b61b"
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=D4C1Y7L71bdwQee23UPT5CU%2Bm9ZE%2B8ECoO1rFZcJO0OGR5ah4rEkiNKI6FjwOKydBikZORMu7v23nVKj4QCJpAD5MmMmJcBxp%2B8fBsV7IxrGdVH6sMoN53cbPi4c1IxTwf6w2ZEgoV9OLTl%2Fodl7IS628dYQK6sCTt0DG7Oy8h%2B2ptDEFdHwsXcyTwd4diAbCm%2BXWU8DfbVrVpDf35ZYMe2HCEiGpu2NiPq97OMkwO3fhLlqW7t%2BA1z%2BQHKPnWQth7AEbdpwKd2%2BTr9HCJDqXQ%3D%3D--JdAUMw%2FxGCXSl5dk--HS6Kn7d8qAsStp%2B4FueY6g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1135325172.1752884629; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 00:23:49 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 00:23:49 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 860A:2C2572:241A05:31A97F:687AE595
Triple-slash reference type directives can override the import mode u… · microsoft/TypeScript@67172e4 · 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/moduleNameResolver.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 67172e4
Triple-slash reference type directives can override the import mode used for their resolution (#47732)
* Triple-slash reference type directives can override the import mode used for their resolution
They now use the file's default mode by default, rather than always using commonjs. The new arguments to the
reference directive look like:
```ts
///<reference types="pkg" resolution-mode="require" />
```
or
```ts
///<reference types="pkg" resolution-mode="import" />
```
* Omit redundant import modes in emitter
* Add test for #47806
* Add server test for triple-slash reference mode overrides
* Move FileReference mode into helper
* Update tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride3.ts
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>1 parent 1b1530a commit 67172e4Copy full SHA for 67172e4
File tree
Expand file treeCollapse file tree
129 files changed
+3158
-102
lines changedFilter options
- src
- compiler
- factory
- transformers
- server
- services
- testRunner/unittests/tsserver
- tests
- baselines/reference
- api
- cases
- conformance/node
- 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
129 files changed
+3158
-102
lines changed+11-11Lines changed: 11 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42202 | 42202 |
| |
42203 | 42203 |
| |
42204 | 42204 |
| |
42205 |
| - | |
| 42205 | + | |
42206 | 42206 |
| |
42207 | 42207 |
| |
42208 |
| - | |
42209 |
| - | |
| 42208 | + | |
| 42209 | + | |
42210 | 42210 |
| |
42211 | 42211 |
| |
42212 | 42212 |
| |
42213 | 42213 |
| |
42214 | 42214 |
| |
42215 | 42215 |
| |
42216 | 42216 |
| |
42217 |
| - | |
| 42217 | + | |
42218 | 42218 |
| |
42219 | 42219 |
| |
42220 | 42220 |
| |
| |||
42337 | 42337 |
| |
42338 | 42338 |
| |
42339 | 42339 |
| |
42340 |
| - | |
| 42340 | + | |
42341 | 42341 |
| |
42342 | 42342 |
| |
42343 | 42343 |
| |
| |||
42355 | 42355 |
| |
42356 | 42356 |
| |
42357 | 42357 |
| |
42358 |
| - | |
| 42358 | + | |
42359 | 42359 |
| |
42360 | 42360 |
| |
42361 | 42361 |
| |
42362 | 42362 |
| |
42363 | 42363 |
| |
42364 |
| - | |
| 42364 | + | |
42365 | 42365 |
| |
42366 | 42366 |
| |
42367 | 42367 |
| |
| |||
42412 | 42412 |
| |
42413 | 42413 |
| |
42414 | 42414 |
| |
42415 |
| - | |
| 42415 | + | |
42416 | 42416 |
| |
42417 |
| - | |
42418 |
| - | |
| 42417 | + | |
| 42418 | + | |
42419 | 42419 |
| |
42420 | 42420 |
| |
42421 | 42421 |
| |
42422 |
| - | |
| 42422 | + | |
42423 | 42423 |
| |
42424 | 42424 |
| |
42425 | 42425 |
| |
|
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 | |
---|---|---|---|
| |||
1412 | 1412 |
| |
1413 | 1413 |
| |
1414 | 1414 |
| |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
1415 | 1423 |
| |
1416 | 1424 |
| |
1417 | 1425 |
| |
|
+5-2Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3993 | 3993 |
| |
3994 | 3994 |
| |
3995 | 3995 |
| |
3996 |
| - | |
3997 |
| - | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
3998 | 4001 |
| |
3999 | 4002 |
| |
4000 | 4003 |
| |
|
src/compiler/factory/nodeFactory.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeFactory.ts+10-2Lines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6414 | 6414 |
| |
6415 | 6415 |
| |
6416 | 6416 |
| |
6417 |
| - | |
| 6417 | + | |
6418 | 6418 |
| |
6419 | 6419 |
| |
6420 | 6420 |
| |
| |||
6435 | 6435 |
| |
6436 | 6436 |
| |
6437 | 6437 |
| |
6438 |
| - | |
| 6438 | + | |
| 6439 | + | |
| 6440 | + | |
| 6441 | + | |
| 6442 | + | |
| 6443 | + | |
| 6444 | + | |
6439 | 6445 |
| |
6440 | 6446 |
| |
6441 | 6447 |
| |
| |||
6496 | 6502 |
| |
6497 | 6503 |
| |
6498 | 6504 |
| |
| 6505 | + | |
| 6506 | + | |
6499 | 6507 |
| |
6500 | 6508 |
| |
6501 | 6509 |
| |
|
src/compiler/moduleNameResolver.ts
Copy file name to clipboardExpand all lines: src/compiler/moduleNameResolver.ts+22-7Lines changed: 22 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
300 |
| - | |
| 300 | + | |
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
307 | 307 |
| |
308 |
| - | |
| 308 | + | |
309 | 309 |
| |
310 | 310 |
| |
311 | 311 |
| |
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
343 |
| - | |
344 |
| - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
345 | 356 |
| |
346 | 357 |
| |
347 | 358 |
| |
| |||
362 | 373 |
| |
363 | 374 |
| |
364 | 375 |
| |
365 |
| - | |
| 376 | + | |
366 | 377 |
| |
367 | 378 |
| |
368 | 379 |
| |
| |||
733 | 744 |
| |
734 | 745 |
| |
735 | 746 |
| |
736 |
| - | |
| 747 | + | |
737 | 748 |
| |
738 | 749 |
| |
739 | 750 |
| |
740 |
| - | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
741 | 756 |
| |
742 | 757 |
| |
743 | 758 |
| |
|
+17-2Lines changed: 17 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9306 | 9306 |
| |
9307 | 9307 |
| |
9308 | 9308 |
| |
| 9309 | + | |
| 9310 | + | |
| 9311 | + | |
| 9312 | + | |
| 9313 | + | |
| 9314 | + | |
| 9315 | + | |
| 9316 | + | |
| 9317 | + | |
| 9318 | + | |
| 9319 | + | |
| 9320 | + | |
| 9321 | + | |
| 9322 | + | |
9309 | 9323 |
| |
9310 | 9324 |
| |
9311 | 9325 |
| |
| |||
9351 | 9365 |
| |
9352 | 9366 |
| |
9353 | 9367 |
| |
9354 |
| - | |
| 9368 | + | |
9355 | 9369 |
| |
9356 | 9370 |
| |
9357 | 9371 |
| |
9358 | 9372 |
| |
9359 |
| - | |
| 9373 | + | |
| 9374 | + | |
9360 | 9375 |
| |
9361 | 9376 |
| |
9362 | 9377 |
| |
|
You can’t perform that action at this time.
0 commit comments