| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:7eac0afa-61c8-16f3-3804-9e2209b25642 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8342:AAA27:2BE543B:3C4FFE0:6964E19F |
| html-safe-nonce | 1c7cd9c7571bd44bf4a7cbe2f63b422ab1e4765423fb1773b137cccc36983bcf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzQyOkFBQTI3OjJCRTU0M0I6M0M0RkZFMDo2OTY0RTE5RiIsInZpc2l0b3JfaWQiOiI4NTA1NDQ4MjUzNDMzODk3Mzc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 65bd7a3274c28ae9568511cfe1f14b5dee070eb455c1a90b915159d1719ae7df |
| hovercard-subject-tag | pull_request:304007330 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/32695/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/adc829b6ad7e91bac86202700f98ff783854b6b59798b8473305df2221d55667/microsoft/TypeScript/pull/32695 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/adc829b6ad7e91bac86202700f98ff783854b6b59798b8473305df2221d55667/microsoft/TypeScript/pull/32695 |
| og:image:alt | With this PR we reflect the effects of calls to assert(...) functions and never-returning functions in control flow analysis. We also improve analysis of the effects of exhaustive switch statements... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ahejlsberg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5838582163a1256e5ebd5086b7e1dc5cea93d82086c9c8b1395fb50f6ddab28d |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8edad3509fd3b4374694551987974bbbcfd316c0 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/microsoft/TypeScript/pull/32695#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F32695 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F32695 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript |
| Reload | https://github.com/microsoft/TypeScript/pull/32695 |
| Reload | https://github.com/microsoft/TypeScript/pull/32695 |
| Reload | https://github.com/microsoft/TypeScript/pull/32695 |
|
microsoft
| https://github.com/microsoft |
| TypeScript | https://github.com/microsoft/TypeScript |
|
Notifications
| https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript |
|
Fork
13.2k
| https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript |
|
Star
107k
| https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript |
|
Code
| https://github.com/microsoft/TypeScript |
|
Issues
5k
| https://github.com/microsoft/TypeScript/issues |
|
Pull requests
496
| https://github.com/microsoft/TypeScript/pulls |
|
Actions
| https://github.com/microsoft/TypeScript/actions |
|
Projects
1
| https://github.com/microsoft/TypeScript/projects |
|
Models
| https://github.com/microsoft/TypeScript/models |
|
Wiki
| https://github.com/microsoft/TypeScript/wiki |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/microsoft/TypeScript/security |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
|
Insights
| https://github.com/microsoft/TypeScript/pulse |
|
Code
| https://github.com/microsoft/TypeScript |
|
Issues
| https://github.com/microsoft/TypeScript/issues |
|
Pull requests
| https://github.com/microsoft/TypeScript/pulls |
|
Actions
| https://github.com/microsoft/TypeScript/actions |
|
Projects
| https://github.com/microsoft/TypeScript/projects |
|
Models
| https://github.com/microsoft/TypeScript/models |
|
Wiki
| https://github.com/microsoft/TypeScript/wiki |
|
Security
| https://github.com/microsoft/TypeScript/security |
|
Insights
| https://github.com/microsoft/TypeScript/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmicrosoft%2FTypeScript%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript%2Fissues%2Fnew%2Fchoose |
| Jump to bottom | https://github.com/microsoft/TypeScript/pull/32695#issue-comment-box |
| ahejlsberg | https://github.com/ahejlsberg |
| master | https://github.com/microsoft/TypeScript/tree/master |
| assertionsInControlFlow | https://github.com/microsoft/TypeScript/tree/assertionsInControlFlow |
|
Assertions in control flow analysis
| https://github.com/microsoft/TypeScript/pull/32695#top |
| ahejlsberg | https://github.com/ahejlsberg |
| master | https://github.com/microsoft/TypeScript/tree/master |
| assertionsInControlFlow | https://github.com/microsoft/TypeScript/tree/assertionsInControlFlow |
|
Conversation
145
| https://github.com/microsoft/TypeScript/pull/32695 |
|
Commits
44
| https://github.com/microsoft/TypeScript/pull/32695/commits |
|
Checks
0
| https://github.com/microsoft/TypeScript/pull/32695/checks |
|
Files changed
| https://github.com/microsoft/TypeScript/pull/32695/files |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.co/hiddenchars |
| https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }} |
|
| https://github.com/ahejlsberg |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issue-476462173 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| #8655 | https://github.com/microsoft/TypeScript/issues/8655 |
| #11572 | https://github.com/microsoft/TypeScript/issues/11572 |
| #12668 | https://github.com/microsoft/TypeScript/issues/12668 |
| #13241 | https://github.com/microsoft/TypeScript/issues/13241 |
| #18362 | https://github.com/microsoft/TypeScript/issues/18362 |
| #20409 | https://github.com/microsoft/TypeScript/issues/20409 |
| #20823 | https://github.com/microsoft/TypeScript/issues/20823 |
| #22470 | https://github.com/microsoft/TypeScript/issues/22470 |
| #27909 | https://github.com/microsoft/TypeScript/issues/27909 |
| #27388 | https://github.com/microsoft/TypeScript/issues/27388 |
| #30000 | https://github.com/microsoft/TypeScript/issues/30000 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| ahejlsberg | https://github.com/ahejlsberg |
| July 31, 2019 16:30 | https://github.com/microsoft/TypeScript/pull/32695#commits-pushed-e89acb6 |
|
| https://github.com/ahejlsberg |
| Reflect effects of assertion calls in control flow analysis | https://github.com/microsoft/TypeScript/pull/32695/commits/e89acb6358845b310753e132f5ae692c72d5bb6a |
| e89acb6 | https://github.com/microsoft/TypeScript/pull/32695/commits/e89acb6358845b310753e132f5ae692c72d5bb6a |
|
| https://github.com/ahejlsberg |
| Support 'asserts' type predicates in control flow analysis | https://github.com/microsoft/TypeScript/pull/32695/commits/77f2a412e15a3f3ac2a01d648a64e75670d47204 |
| 77f2a41 | https://github.com/microsoft/TypeScript/pull/32695/commits/77f2a412e15a3f3ac2a01d648a64e75670d47204 |
|
| https://github.com/ahejlsberg |
| Remove unused code | https://github.com/microsoft/TypeScript/pull/32695/commits/1f5bb970d987a7387a3531e1cea00f51b08fe20a |
| 1f5bb97 | https://github.com/microsoft/TypeScript/pull/32695/commits/1f5bb970d987a7387a3531e1cea00f51b08fe20a |
| https://github.com/ahejlsberg |
| ahejlsberg | https://github.com/ahejlsberg |
|
Aug 3, 2019
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-155398918 |
|
Control flow based type narrowing for assert(...) calls
#8655
| https://github.com/microsoft/TypeScript/issues/8655 |
| https://github.com/acutmore |
| acutmore | https://github.com/acutmore |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517934545 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
|
| https://github.com/ahejlsberg |
| Accept new API baselines | https://github.com/microsoft/TypeScript/pull/32695/commits/fe70a62ef1ef87d20a860c6bdea999cdfab76592 |
| fe70a62 | https://github.com/microsoft/TypeScript/pull/32695/commits/fe70a62ef1ef87d20a860c6bdea999cdfab76592 |
| https://github.com/ahejlsberg |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517935342 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/ahejlsberg |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517935710 |
| @typescript-bot | https://github.com/typescript-bot |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/typescript-bot |
| typescript-bot | https://github.com/typescript-bot |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517935722 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| @ahejlsberg | https://github.com/ahejlsberg |
| fe70a62 | https://github.com/microsoft/TypeScript/commit/fe70a62ef1ef87d20a860c6bdea999cdfab76592 |
| here | https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=38772 |
| The results are in! | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517937715 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/dragomirtitian |
| dragomirtitian | https://github.com/dragomirtitian |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517935765 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| @ahejlsberg | https://github.com/ahejlsberg |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/acutmore |
| acutmore | https://github.com/acutmore |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517936073 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/ahejlsberg |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517937626 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/typescript-bot |
| typescript-bot | https://github.com/typescript-bot |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517937715 |
| @ahejlsberg | https://github.com/ahejlsberg |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/ahejlsberg |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517938123 |
| @dragomirtitian | https://github.com/dragomirtitian |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/acutmore |
| acutmore | https://github.com/acutmore |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517939408 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/felixfbecker |
| felixfbecker | https://github.com/felixfbecker |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517949567 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| #8655 (comment) | https://github.com/microsoft/TypeScript/issues/8655#issuecomment-411070339 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/ajafff |
| ajafff | https://github.com/ajafff |
|
Aug 3, 2019
| https://github.com/microsoft/TypeScript/pull/32695#pullrequestreview-270470205 |
|
View reviewed changes
| https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592 |
| ajafff | https://github.com/ajafff |
| https://github.com/microsoft/TypeScript/pull/32695#pullrequestreview-270470205 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| src/compiler/binder.ts | https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592#diff-9ad14a2e2e66533cd0c3f02ecf01f7e6bc9d60cdf2e125df2a14ce0713222898 |
| ajafff | https://github.com/ajafff |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310360576 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310363932 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| src/compiler/binder.ts | https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592#diff-9ad14a2e2e66533cd0c3f02ecf01f7e6bc9d60cdf2e125df2a14ce0713222898 |
| ajafff | https://github.com/ajafff |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310360637 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310364014 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| src/compiler/parser.ts | https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592#diff-12a6724be007eb1a19d80018c7a63bbc73525ca793a9b3e5da49a4e86bbf457c |
| ajafff | https://github.com/ajafff |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310360751 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310364104 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| src/compiler/parser.ts | https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592#diff-12a6724be007eb1a19d80018c7a63bbc73525ca793a9b3e5da49a4e86bbf457c |
| ajafff | https://github.com/ajafff |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310360857 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310364110 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| src/compiler/parser.ts | https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592#diff-12a6724be007eb1a19d80018c7a63bbc73525ca793a9b3e5da49a4e86bbf457c |
| ajafff | https://github.com/ajafff |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310360892 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310364121 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| src/compiler/factory.ts | https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592#diff-aa7be70e4da2f4c99dd3bdfeda6e99ea1e8270cf51643ab462aa8a640d8c5c3a |
| ajafff | https://github.com/ajafff |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310361133 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| src/compiler/checker.ts | https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8 |
| ajafff | https://github.com/ajafff |
| Aug 3, 2019 | https://github.com/microsoft/TypeScript/pull/32695#discussion_r310361620 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/treybrisbane |
| treybrisbane | https://github.com/treybrisbane |
| Aug 4, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517966530 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/j-f1 |
| j-f1 | https://github.com/j-f1 |
| Aug 4, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517967456 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/kitsonk |
| kitsonk | https://github.com/kitsonk |
|
Aug 4, 2019
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-476513972 |
|
assert and CFA
denoland/deno#2715
| https://github.com/denoland/deno/issues/2715 |
| https://github.com/zen0wu |
| zen0wu | https://github.com/zen0wu |
| Aug 4, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517978315 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/krzkaczor |
| krzkaczor | https://github.com/krzkaczor |
| Aug 4, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-517984535 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| @ahejlsberg | https://github.com/ahejlsberg |
| Affine types / ownership system #16148 | https://github.com/microsoft/TypeScript/issues/16148 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/goodmind |
| goodmind | https://github.com/goodmind |
| Aug 4, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-518007398 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/jack-williams |
| jack-williams | https://github.com/jack-williams |
| Aug 4, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-518009011 |
| @treybrisbane | https://github.com/treybrisbane |
| @krzkaczor | https://github.com/krzkaczor |
| @felixfbecker | https://github.com/felixfbecker |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/felixfbecker |
| felixfbecker | https://github.com/felixfbecker |
| Aug 4, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-518009682 |
| @jack-williams | https://github.com/jack-williams |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/goodmind |
| goodmind | https://github.com/goodmind |
|
Aug 4, 2019
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-49852696 |
|
Remove special case for invariant
facebook/flow#112
| https://github.com/facebook/flow/issues/112 |
| https://github.com/alexreardon |
| alexreardon | https://github.com/alexreardon |
| Aug 4, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-518043680 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| alexreardon/tiny-invariant#45 | https://github.com/alexreardon/tiny-invariant/issues/45 |
| atlassian/react-beautiful-dnd#982 | https://github.com/atlassian/react-beautiful-dnd/issues/982 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/ahejlsberg |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 5, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-518101827 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| @felixfbecker | https://github.com/felixfbecker |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
|
| https://github.com/ahejlsberg |
| Address code review feedback | https://github.com/microsoft/TypeScript/pull/32695/commits/1c55e5de69c581da19184c1b9bfa08c800d1bb7c |
| 1c55e5d | https://github.com/microsoft/TypeScript/pull/32695/commits/1c55e5de69c581da19184c1b9bfa08c800d1bb7c |
| https://github.com/ahejlsberg |
| ahejlsberg | https://github.com/ahejlsberg |
| Aug 5, 2019 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-518103729 |
| @typescript-bot | https://github.com/typescript-bot |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Mar 26, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1640945713 |
|
Calling a function that returns never, not always triggers an unreachable code error
#53510
| https://github.com/microsoft/TypeScript/issues/53510 |
| https://github.com/tamuratak |
| tamuratak | https://github.com/tamuratak |
|
Apr 8, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1659678982 |
|
Support assertion functions with assertion signatures, assertLength and others
uhyo/ts-array-length#2
| https://github.com/uhyo/ts-array-length/issues/2 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
May 16, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1712335361 |
|
never type does not work as expected in the function of a class
#54265
| https://github.com/microsoft/TypeScript/issues/54265 |
| https://github.com/mjfaga |
| mjfaga | https://github.com/mjfaga |
|
Jul 10, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-pullrequest-1797401157 |
|
Reset polling on init
prefab-cloud/prefab-cloud-js#21
| https://github.com/prefab-cloud/prefab-cloud-js/pull/21 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Jul 30, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1827961047 |
|
Yielding an assertion function call does not narrow the asserted type
#55205
| https://github.com/microsoft/TypeScript/issues/55205 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Aug 13, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1848676928 |
|
Arrow function don't see never as a return type, while normal functions do
#55351
| https://github.com/microsoft/TypeScript/issues/55351 |
| https://github.com/mqudsi |
| mqudsi | https://github.com/mqudsi |
|
Sep 14, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1897468173 |
|
Assigning assertion or never breaks nullability control flow analysis
#55749
| https://github.com/microsoft/TypeScript/issues/55749 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Oct 10, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1934940701 |
|
Unreachable code is not detected for methods that return never
#56049
| https://github.com/microsoft/TypeScript/issues/56049 |
| https://github.com/ssalbdivad |
| ssalbdivad | https://github.com/ssalbdivad |
|
Oct 18, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1949804995 |
|
Unable to invoke an arrow function with an assertion predicate
#56147
| https://github.com/microsoft/TypeScript/issues/56147 |
| https://github.com/ssalbdivad |
| ssalbdivad | https://github.com/ssalbdivad |
|
Nov 10, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-1987523399 |
|
never-returning branches should not be considered when determining whether a property is initialized in a constructor
#56362
| https://github.com/microsoft/TypeScript/issues/56362 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Dec 6, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2029033390 |
|
Returned assert functions need needlessly explicitly typed
#56695
| https://github.com/microsoft/TypeScript/issues/56695 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Dec 17, 2023
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2045116065 |
|
Control flow analysis broken for never returning class methods
#56812
| https://github.com/microsoft/TypeScript/issues/56812 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Jan 18, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2088701328 |
|
'Never': different behavior with and without function type declaration
#57084
| https://github.com/microsoft/TypeScript/issues/57084 |
| https://github.com/MinSeungHyun |
| MinSeungHyun | https://github.com/MinSeungHyun |
|
Jan 30, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2107006097 |
|
TypeScript doesn't correctly narrow types and detect unreachable code after calling redirect()
amannn/next-intl#823
| https://github.com/amannn/next-intl/issues/823 |
| https://github.com/danvk |
| danvk | https://github.com/danvk |
|
Feb 28, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-481858208 |
|
Circular reference misdetection
#32950
| https://github.com/microsoft/TypeScript/issues/32950 |
| https://github.com/fatcerberus |
| fatcerberus | https://github.com/fatcerberus |
|
Mar 12, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2180567964 |
|
Specifying return type 'never' on function expression doesn't work, but it works on function declaration.
#57732
| https://github.com/microsoft/TypeScript/issues/57732 |
| https://github.com/cobaltt7 |
| cobaltt7 | https://github.com/cobaltt7 |
|
Mar 22, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-pullrequest-2192425582 |
|
types: Use ThreadChannel and AnyThreadChannel consistently
discordjs/discord.js#10181
| https://github.com/discordjs/discord.js/pull/10181 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Aug 28, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2492745048 |
|
Native node TestContext.assert is not typed correctly
#59787
| https://github.com/microsoft/TypeScript/issues/59787 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Sep 25, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2547647479 |
|
Calling never-returning method on a subtype of function does not consider following code as unreachable
#60059
| https://github.com/microsoft/TypeScript/issues/60059 |
| https://github.com/Andarist |
| Andarist | https://github.com/Andarist |
|
Oct 10, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2578544458 |
|
Inferred never values don't properly type guard
#60185
| https://github.com/microsoft/TypeScript/issues/60185 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Oct 29, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2621929722 |
|
Detection of unreachable code after call to function returning never is broken for functions exported via intermediate variable
#60368
| https://github.com/microsoft/TypeScript/issues/60368 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Nov 26, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2694203717 |
|
never return type not handled when function has implicit type
#60609
| https://github.com/microsoft/TypeScript/issues/60609 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Dec 22, 2024
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2754808482 |
|
assert type refinements don't work in expressions
#60841
| https://github.com/microsoft/TypeScript/issues/60841 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Feb 3, 2025
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2826678006 |
|
Type predicate silently ignored when used as non-statement expression
#61105
| https://github.com/microsoft/TypeScript/issues/61105 |
| https://github.com/Universal-Invariant |
| Universal-Invariant | https://github.com/Universal-Invariant |
| Mar 11, 2025 | https://github.com/microsoft/TypeScript/pull/32695#issuecomment-2714204705 |
| https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions | https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Mar 22, 2025
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-2940300614 |
|
Inconsistent behavior of the never return type between function and class method
#61464
| https://github.com/microsoft/TypeScript/issues/61464 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
May 3, 2025
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-3037022450 |
|
Cross-module inference issue: never-returning function doesn't prevent further type checking in async context
#61649
| https://github.com/microsoft/TypeScript/issues/61649 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Aug 8, 2025
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-3303290033 |
|
Enhance Control‑Flow Narrowing for never‑returning Functions Passed as Parameters
#62235
| https://github.com/microsoft/TypeScript/issues/62235 |
| https://github.com/MartinJohns |
| MartinJohns | https://github.com/MartinJohns |
|
Sep 30, 2025
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-3468215635 |
|
Cannot assert about union type of assertions
#62513
| https://github.com/microsoft/TypeScript/issues/62513 |
| https://github.com/dummdidumm |
| dummdidumm | https://github.com/dummdidumm |
|
Oct 17, 2025
| https://github.com/microsoft/TypeScript/pull/32695#ref-issue-3526117333 |
|
Docs: Imperative invalidation caveat
sveltejs/kit#14745
| https://github.com/sveltejs/kit/issues/14745 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F32695 |
|
| https://github.com/weswigham |
|
weswigham
| https://github.com/weswigham |
|
| https://github.com/microsoft/TypeScript/pull/32695/files/2c36249ed6bd63f4fd66813985ae2dff681349a5 |
|
| https://github.com/RyanCavanaugh |
|
RyanCavanaugh
| https://github.com/RyanCavanaugh |
|
| https://github.com/microsoft/TypeScript/pull/32695/files/bcdf33d8de066b827e8251875675b7a0084446c5 |
|
| https://github.com/DanielRosenwasser |
|
DanielRosenwasser
| https://github.com/DanielRosenwasser |
|
| https://github.com/rbuckton |
|
rbuckton
| https://github.com/rbuckton |
|
| https://github.com/microsoft/TypeScript/pull/32695/files/2c36249ed6bd63f4fd66813985ae2dff681349a5 |
|
| https://github.com/jack-williams |
|
jack-williams
| https://github.com/jack-williams |
|
| https://github.com/microsoft/TypeScript/pull/32695/files/bcdf33d8de066b827e8251875675b7a0084446c5 |
|
| https://github.com/ajafff |
|
ajafff
| https://github.com/ajafff |
|
| https://github.com/microsoft/TypeScript/pull/32695/files/fe70a62ef1ef87d20a860c6bdea999cdfab76592 |
|
| https://github.com/ahejlsberg |
|
ahejlsberg
| https://github.com/ahejlsberg |
|
Update Docs on Next Release
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Update%20Docs%20on%20Next%20Release%22 |
|
TypeScript 3.7.0
| https://github.com/microsoft/TypeScript/milestone/98 |
|
TS2454 after assigning a value from an exhaustive switch statement
| https://github.com/microsoft/TypeScript/issues/18362 |
|
switch on enum exhaustive for direct return but not for indirect return
| https://github.com/microsoft/TypeScript/issues/13241 |
|
Exhaustiveness checking doesn't work with variables
| https://github.com/microsoft/TypeScript/issues/12668 |
|
CFA: control flow for switch is defeated by outer if-else
| https://github.com/microsoft/TypeScript/issues/11572 |
|
Control flow based type narrowing for assert(...) calls
| https://github.com/microsoft/TypeScript/issues/8655 |
|
Problem with exhaustiveness check for tagged unions
| https://github.com/microsoft/TypeScript/issues/20409 |
|
Definite assignment for exhaustive switch statements.
| https://github.com/microsoft/TypeScript/issues/20823 |
|
Initializing let variables and exhaustiveness checking
| https://github.com/microsoft/TypeScript/issues/22470 |
|
enum exhaustiveness checking with --noImplicitReturns doesn't work for nested switches
| https://github.com/microsoft/TypeScript/issues/27388 |
|
strictNullChecks false positive when all possible conditions have been defined
| https://github.com/microsoft/TypeScript/issues/27909 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/32695 |
|
| https://github.com/ahejlsberg |
|
| https://github.com/acutmore |
|
| https://github.com/typescript-bot |
|
| https://github.com/dragomirtitian |
|
| https://github.com/felixfbecker |
|
| https://github.com/treybrisbane |
|
| https://github.com/j-f1 |
|
| https://github.com/zen0wu |
|
| https://github.com/krzkaczor |
|
| https://github.com/goodmind |
|
| https://github.com/jack-williams |
|
| https://github.com/alexreardon |
|
| https://github.com/shicks |
|
| https://github.com/polmabri |
|
| https://github.com/osyrisrblx |
|
| https://github.com/weswigham |
|
| https://github.com/jdom |
|
| https://github.com/magnushiie |
|
| https://github.com/rbuckton |
|
| https://github.com/Jessidhia |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |