CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 10:56:21 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/"4dff710bf81ea0d7e1cf70faf6847086"
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=axcDpiotkCM0PpkWfXLb1CXijomzQbbGIJyU5ueX3ZmwD4inlEUCfC%2BBf%2BkfvFpw0GeudIixZb4g0Lex6v7nkWFIhJq59evCD1MVCKqzucw2Mx1NzloxFGVH3zbbUVnq%2B7wBMvtHuyLV7rx1lqWXoPa0E8Qgl3L1Sv6j9l5fd4P0k1QIcUoSf83h7l463kgRU3ePOFnEDnROp2C65bsRI0w7SQRRR552D3au%2Fvr4fW1qTia9Xj9HCSlVKHzFQ80z%2BUznttxaliA0%2BvvEtNQU4Q%3D%3D--48%2BoAKZVg5v%2FHg%2Fs--avP8mkaf7wxoSXdHoz9mQw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1327834399.1752922579; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 10:56:19 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 10:56:19 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AC3C:11289F:68BA89:8A2040:687B79D3
Merge pull request #5906 from weswigham/this-type-guards · microsoft/TypeScript@58400ed · GitHub
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: tests/baselines/reference/arrayBufferIsViewNarrowsType.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/isArray.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/stringLiteralCheckedInIf02.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/stringLiteralTypesAsTags01.errors.txt
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 58400ed
File tree
Expand file treeCollapse file tree
30 files changed
+2942
-177
lines changedFilter options
- src/compiler
- tests
- baselines/reference
- cases/conformance/expressions/typeGuards
Expand file treeCollapse file tree
30 files changed
+2942
-177
lines changed+13-1Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1189 | 1189 |
| |
1190 | 1190 |
| |
1191 | 1191 |
| |
1192 |
| - | |
| 1192 | + | |
| 1193 | + | |
1193 | 1194 |
| |
1194 | 1195 |
| |
1195 | 1196 |
| |
| |||
1275 | 1276 |
| |
1276 | 1277 |
| |
1277 | 1278 |
| |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1278 | 1290 |
| |
1279 | 1291 |
| |
1280 | 1292 |
| |
|
+240-120Lines changed: 240 additions & 120 deletions
Large diffs are not rendered by default.
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 | |
---|---|---|---|
| |||
1647 | 1647 |
| |
1648 | 1648 |
| |
1649 | 1649 |
| |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
1650 | 1658 |
| |
1651 | 1659 |
| |
1652 | 1660 |
| |
|
+20-9Lines changed: 20 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1963 | 1963 |
| |
1964 | 1964 |
| |
1965 | 1965 |
| |
1966 |
| - | |
1967 |
| - | |
1968 |
| - | |
1969 |
| - | |
1970 |
| - | |
| 1966 | + | |
1971 | 1967 |
| |
1972 | 1968 |
| |
1973 | 1969 |
| |
| |||
1977 | 1973 |
| |
1978 | 1974 |
| |
1979 | 1975 |
| |
1980 |
| - | |
1981 |
| - | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
1982 | 1986 |
| |
1983 | 1987 |
| |
1984 | 1988 |
| |
| |||
2424 | 2428 |
| |
2425 | 2429 |
| |
2426 | 2430 |
| |
2427 |
| - | |
2428 |
| - | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
2429 | 2440 |
| |
2430 | 2441 |
| |
2431 | 2442 |
| |
|
+29-5Lines changed: 29 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
733 | 733 |
| |
734 | 734 |
| |
735 | 735 |
| |
736 |
| - | |
737 | 736 |
| |
738 | 737 |
| |
739 | 738 |
| |
740 | 739 |
| |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
741 | 745 |
| |
742 | 746 |
| |
743 | 747 |
| |
| |||
756 | 760 |
| |
757 | 761 |
| |
758 | 762 |
| |
759 |
| - | |
| 763 | + | |
760 | 764 |
| |
761 | 765 |
| |
762 | 766 |
| |
| |||
1820 | 1824 |
| |
1821 | 1825 |
| |
1822 | 1826 |
| |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
1823 | 1832 |
| |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1824 | 1844 |
| |
1825 | 1845 |
| |
1826 |
| - | |
1827 | 1846 |
| |
1828 | 1847 |
| |
1829 | 1848 |
| |
| |||
2091 | 2110 |
| |
2092 | 2111 |
| |
2093 | 2112 |
| |
| 2113 | + | |
2094 | 2114 |
| |
2095 | 2115 |
| |
2096 | 2116 |
| |
| |||
2102 | 2122 |
| |
2103 | 2123 |
| |
2104 | 2124 |
| |
2105 |
| - | |
| 2125 | + | |
2106 | 2126 |
| |
2107 | 2127 |
| |
2108 | 2128 |
| |
| |||
2123 | 2143 |
| |
2124 | 2144 |
| |
2125 | 2145 |
| |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
2126 | 2151 |
| |
2127 | 2152 |
| |
2128 | 2153 |
| |
| |||
2239 | 2264 |
| |
2240 | 2265 |
| |
2241 | 2266 |
| |
2242 |
| - | |
2243 | 2267 |
| |
2244 | 2268 |
| |
2245 | 2269 |
| |
|
+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
693 | 693 |
| |
694 | 694 |
| |
695 | 695 |
| |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
696 | 700 |
| |
697 | 701 |
| |
698 | 702 |
| |
|
tests/baselines/reference/arrayBufferIsViewNarrowsType.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/arrayBufferIsViewNarrowsType.types+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
tests/baselines/reference/isArray.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/isArray.types+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
tests/baselines/reference/stringLiteralCheckedInIf02.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/stringLiteralCheckedInIf02.types+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
|
tests/baselines/reference/stringLiteralTypesAsTags01.errors.txt
Copy file name to clipboardExpand all lines: tests/baselines/reference/stringLiteralTypesAsTags01.errors.txt+1-7Lines changed: 1 addition & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 | 1 |
| |
4 | 2 |
| |
5 | 3 |
| |
6 | 4 |
| |
7 |
| - | |
| 5 | + | |
8 | 6 |
| |
9 | 7 |
| |
10 | 8 |
| |
| |||
23 | 21 |
| |
24 | 22 |
| |
25 | 23 |
| |
26 |
| - | |
27 |
| - | |
28 | 24 |
| |
29 |
| - | |
30 |
| - | |
31 | 25 |
| |
32 | 26 |
| |
33 | 27 |
| |
|
You can’t perform that action at this time.
0 commit comments