| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:ff523083-f92a-4c16-e8aa-4fc287ae6633 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B002:29FFA9:27C8D65:325F4CC:6B019686 |
| html-safe-nonce | f899955126bff5319d6490851e1e8761ad6c2e147f2d0925ccb083cedfbc2f31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDAyOjI5RkZBOToyN0M4RDY1OjMyNUY0Q0M6NkIwMTk2ODYiLCJ2aXNpdG9yX2lkIjoiMzIzOTg1Mzg4OTQxOTMxODkxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d1e35034ecee7be9ef12c600e955a329f9d011a8710a8d0d6ff5603c217841fd |
| hovercard-subject-tag | pull_request:69550272 |
| 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/8548/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/193b456a38d97ad4168a5148d5f2024df3629fe84aa5b670a03f09c2c85e8f8b/microsoft/TypeScript/pull/8548 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/193b456a38d97ad4168a5148d5f2024df3629fe84aa5b670a03f09c2c85e8f8b/microsoft/TypeScript/pull/8548 |
| og:image:alt | This PR fixes several of the issues we've had around nothing types in control flows. We previously took the view that when the current control flow based type of a variable is disjoint with the... |
| 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 | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/microsoft/TypeScript/pull/8548#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F8548 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| 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 |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | 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/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F8548 |
| 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/8548 |
| Reload | https://github.com/microsoft/TypeScript/pull/8548 |
| Reload | https://github.com/microsoft/TypeScript/pull/8548 |
| microsoft | https://github.com/microsoft |
| TypeScript | https://github.com/microsoft/TypeScript |
| Code | https://github.com/microsoft/TypeScript |
| Issues5k (5k) | https://github.com/microsoft/TypeScript/issues |
| Pull requests312 (312) | https://github.com/microsoft/TypeScript/pulls |
| Actions | https://github.com/microsoft/TypeScript/actions |
| Projects | https://github.com/microsoft/TypeScript/projects |
| Wiki | https://github.com/microsoft/TypeScript/wiki |
| Security and quality | https://github.com/microsoft/TypeScript/security |
| Insights | https://github.com/microsoft/TypeScript/insights |
| https://github.com/microsoft/TypeScript |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| master | https://github.com/microsoft/TypeScript/tree/master |
| typeGuardAsAssertion | https://github.com/microsoft/TypeScript/tree/typeGuardAsAssertion |
| Conversation | https://github.com/microsoft/TypeScript/pull/8548 |
| Commits6 (6) | https://github.com/microsoft/TypeScript/pull/8548/commits |
| Checks | https://github.com/microsoft/TypeScript/pull/8548/checks |
| Files changed | https://github.com/microsoft/TypeScript/pull/8548/files |
| Type guards as assertions | https://github.com/microsoft/TypeScript/pull/8548#top |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| master | https://github.com/microsoft/TypeScript/tree/master |
| typeGuardAsAssertion | https://github.com/microsoft/TypeScript/tree/typeGuardAsAssertion |
|
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| May 10, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issue-154068896 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| #8513 | https://github.com/microsoft/TypeScript/issues/8513 |
| #8429 | https://github.com/microsoft/TypeScript/pull/8429 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| May 10, 2016 09:35 | https://github.com/microsoft/TypeScript/pull/8548#commits-pushed-e944bfa |
|
| https://github.com/ahejlsberg |
| Revert to declared type when narrowing produces the nothing type | https://github.com/microsoft/TypeScript/pull/8548/commits/e944bfab52e9863cc56a36848473d5f6f0452ab8 |
| e944bfa | https://github.com/microsoft/TypeScript/pull/8548/commits/e944bfab52e9863cc56a36848473d5f6f0452ab8 |
|
| https://github.com/ahejlsberg |
| Renaming emptyUnionType to nothingType | https://github.com/microsoft/TypeScript/pull/8548/commits/6563251dbf007ae734e5323e71c1629a0e045a05 |
| 6563251 | https://github.com/microsoft/TypeScript/pull/8548/commits/6563251dbf007ae734e5323e71c1629a0e045a05 |
|
| https://github.com/ahejlsberg |
| Accepting new baselines | https://github.com/microsoft/TypeScript/pull/8548/commits/2a45e56b653e7882dbb42b1261e0e36030cf2968 |
| 2a45e56 | https://github.com/microsoft/TypeScript/pull/8548/commits/2a45e56b653e7882dbb42b1261e0e36030cf2968 |
|
| https://github.com/ahejlsberg |
| Adding test | https://github.com/microsoft/TypeScript/pull/8548/commits/8c9348d8d6427eaf4edf9c6bda93329b8714e94d |
| 8c9348d | https://github.com/microsoft/TypeScript/pull/8548/commits/8c9348d8d6427eaf4edf9c6bda93329b8714e94d |
| https://github.com/msftclas |
| Microsoft Contribution License Agreements (msftclas) | https://github.com/msftclas |
|
cla-not-required
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required |
| May 10, 2016 | https://github.com/microsoft/TypeScript/pull/8548#event-656131445 |
| https://github.com/mhegazy |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| May 10, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-218296531 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| May 10, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-218324226 |
| Mohamed Hegazy (@mhegazy) | https://github.com/mhegazy |
| #8429 | https://github.com/microsoft/TypeScript/pull/8429 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/DanielRosenwasser |
| Daniel Rosenwasser (DanielRosenwasser) | https://github.com/DanielRosenwasser |
| May 11, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-218330231 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/mhegazy |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| May 11, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-218330841 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/Arnavion |
| Arnav Singh (Arnavion) | https://github.com/Arnavion |
| May 11, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-218370606 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| May 11, 2016 09:26 | https://github.com/microsoft/TypeScript/pull/8548#commits-pushed-5edf726 |
|
| https://github.com/ahejlsberg |
| Revert to declared type when '!' postfix operator would produce 'noth… | https://github.com/microsoft/TypeScript/pull/8548/commits/5edf72666d62cbdefaf4a31513c61451c5a9fc01 |
| 5edf726 | https://github.com/microsoft/TypeScript/pull/8548/commits/5edf72666d62cbdefaf4a31513c61451c5a9fc01 |
|
| https://github.com/ahejlsberg |
| Adding test | https://github.com/microsoft/TypeScript/pull/8548/commits/9f30d9ff6eb252c9ab2e91466abce7f708513fbd |
| 9f30d9f | https://github.com/microsoft/TypeScript/pull/8548/commits/9f30d9ff6eb252c9ab2e91466abce7f708513fbd |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| May 11, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-218519694 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| this discussion | https://github.com/Microsoft/TypeScript/issues/8404#issuecomment-216000021 |
| Ivo Gabe de Wolff (@ivogabe) | https://github.com/ivogabe |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| 89506c1 | https://github.com/microsoft/TypeScript/commit/89506c1138696f4b14821db9e251abb36c5608b1 |
| May 11, 2016 | https://github.com/microsoft/TypeScript/pull/8548#event-657590863 |
| https://github.com/mhegazy |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| May 11, 2016 18:29 | https://github.com/microsoft/TypeScript/pull/8548#event-657593739 |
| https://github.com/malibuzios |
| malibuzios | https://github.com/malibuzios |
| May 14, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-219209543 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Anders Hejlsberg (@ahejlsberg) | https://github.com/ahejlsberg |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| May 14, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-219223206 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/malibuzios |
| malibuzios | https://github.com/malibuzios |
| May 14, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-219226901 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/malibuzios |
| malibuzios | https://github.com/malibuzios |
| May 14, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-219229599 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/malibuzios |
| malibuzios | https://github.com/malibuzios |
| May 14, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-219231326 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/malibuzios |
| malibuzios | https://github.com/malibuzios |
| May 15, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-219271258 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/malibuzios |
| malibuzios | https://github.com/malibuzios |
| May 16, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-219482783 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/malibuzios |
| malibuzios | https://github.com/malibuzios |
| May 17, 2016 | https://github.com/microsoft/TypeScript/pull/8548#issuecomment-219755231 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
|
Jun 5, 2016
| https://github.com/microsoft/TypeScript/pull/8548#ref-issue-158534343 |
|
null comparison fails in switch statement with --strictNullChecks
#8971
| https://github.com/microsoft/TypeScript/issues/8971 |
|
Incorrect discriminated union narrowing following exhaustive if/else
#9246
| https://github.com/microsoft/TypeScript/issues/9246 |
|
Strange type narrowing with Discriminated union types
#9254
| https://github.com/microsoft/TypeScript/issues/9254 |
| https://github.com/yortus |
| Troy Gerwien (yortus) | https://github.com/yortus |
|
Jun 20, 2016
| https://github.com/microsoft/TypeScript/pull/8548#ref-issue-161103355 |
|
Narrowing inconsistencies
#9260
| https://github.com/microsoft/TypeScript/issues/9260 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
|
Jul 21, 2016
| https://github.com/microsoft/TypeScript/pull/8548#ref-issue-166855679 |
|
Mutually exclusive guard constraints and 'never'
#9869
| https://github.com/microsoft/TypeScript/issues/9869 |
|
object possibly null in short circuit evaluation
#10087
| https://github.com/microsoft/TypeScript/issues/10087 |
|
Limit "type guards as assertions" behavior
#10118
| https://github.com/microsoft/TypeScript/pull/10118 |
| https://github.com/mhegazy |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
|
Aug 30, 2016
| https://github.com/microsoft/TypeScript/pull/8548#ref-issue-174100001 |
|
T | U var with initial type T, set to a U inside lambda always deduced as T
#10613
| https://github.com/microsoft/TypeScript/issues/10613 |
| https://github.com/microsoft |
| Microsoft (microsoft) | https://github.com/microsoft |
| Jun 19, 2018 | https://github.com/microsoft/TypeScript/pull/8548#event-1689835256 |
| https://github.co/hiddenchars |
| https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F8548 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
|
why does initialization narrow type?
| https://github.com/microsoft/TypeScript/issues/8513 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/8548 |
|
| https://github.com/ahejlsberg |
|
| https://github.com/mhegazy |
|
| https://github.com/DanielRosenwasser |
|
| https://github.com/Arnavion |
|
| https://github.com/malibuzios |
|
| https://github.com/msftclas |
|
| 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 |