René's URL Explorer Experiment


Title: Narrowing breaking changes · Issue #7662 · microsoft/TypeScript · GitHub

Open Graph Title: Narrowing breaking changes · Issue #7662 · microsoft/TypeScript

X Title: Narrowing breaking changes · Issue #7662 · microsoft/TypeScript

Description: This is a place holder for changes to the type narrowing behavior in TypeScript 2.0: Generic type parameters are now narrowed function g(obj: T) { var t: T; if (obj instanceof RegExp) { t = obj; // RegExp is not assignable to T } } Se...

Open Graph Description: This is a place holder for changes to the type narrowing behavior in TypeScript 2.0: Generic type parameters are now narrowed function g(obj: T) { var t: T; if (obj instanceof RegExp) { t = obj;...

X Description: This is a place holder for changes to the type narrowing behavior in TypeScript 2.0: Generic type parameters are now narrowed function g<T>(obj: T) { var t: T; if (obj instanceof RegExp) { t ...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/7662

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Narrowing breaking changes","articleBody":"This is a place holder for changes to the type narrowing behavior in TypeScript 2.0:\n-  Generic type parameters are now narrowed\n\n``` ts\nfunction g\u003cT>(obj: T) {\n    var t: T;\n    if (obj instanceof RegExp) {\n         t = obj; // RegExp is not assignable to T\n    }\n}\n```\n\nSee the explanation by @Arnavion in https://github.com/Microsoft/TypeScript/issues/7719#issuecomment-202684512\n- Type narrowing does not work for catprued variables in functions and class expressions\n\n``` ts\nexport class Class {\n    constructor(public p) { }\n}\n\nvar c: Class | string;\nvar x: Class;\n\nif (c instanceof Class) {\n    function inner() {\n        x = c; // Error, type of c is not narrowed, c is Class | string\n    }\n    x = c; // OK, c is Class\n}\n```\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2016-03-23T21:56:56Z","url":"https://github.com/microsoft/TypeScript/issues/7662"}

react-profiling0
react-import-mapreact,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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2bae2a3b-2755-c385-d289-ee0f62388e57
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE21A:2C69FC:A4736B:DB9BE4:6B01BCC4
html-safe-nonce31f0350cb22f62bb14dba99e16cb326a6243e7df2f34d477e255b7888bfeb591
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjFBOjJDNjlGQzpBNDczNkI6REI5QkU0OjZCMDFCQ0M0IiwidmlzaXRvcl9pZCI6IjcyMzE2NTIyMjU4MTczNjE2MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6344a8771b80a246470e3940b4e07a0c794f17f53d00041ff965c7df8280e578
hovercard-subject-tagissue:143090551
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/7662/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e6effa50b15e079c7f93adfd02d27031728e415268e3b13d97baa919ebace22a/microsoft/TypeScript/issues/7662
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e6effa50b15e079c7f93adfd02d27031728e415268e3b13d97baa919ebace22a/microsoft/TypeScript/issues/7662
og:image:altThis is a place holder for changes to the type narrowing behavior in TypeScript 2.0: Generic type parameters are now narrowed function g(obj: T) { var t: T; if (obj instanceof RegExp) { t = obj;...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemhegazy
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/7662#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F7662
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F7662
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/7662
Reloadhttps://github.com/microsoft/TypeScript/issues/7662
Reloadhttps://github.com/microsoft/TypeScript/issues/7662
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7662
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7662
Narrowing breaking changeshttps://github.com/microsoft/TypeScript/issues/7662#top
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
TypeScript 2.0https://github.com/microsoft/TypeScript/milestone/1
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7662#issue-143090551
Arnav Singh (@Arnavion)https://github.com/Arnavion
#7719 (comment)https://github.com/microsoft/TypeScript/issues/7719#issuecomment-202684512
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7662#event-600984814
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.0https://github.com/microsoft/TypeScript/milestone/1
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7662#event-600984839
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7662#event-600984946
https://github.com/ivogabe
Ivo Gabe de Wolff (ivogabe)https://github.com/ivogabe
on Mar 24, 2016https://github.com/microsoft/TypeScript/issues/7662#issuecomment-200700467
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Mar 24, 2016https://github.com/microsoft/TypeScript/issues/7662#issuecomment-200918240
https://github.com/ivogabe
Ivo Gabe de Wolff (ivogabe)https://github.com/ivogabe
on Mar 24, 2016https://github.com/microsoft/TypeScript/issues/7662#issuecomment-200945968
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on May 13, 2016https://github.com/microsoft/TypeScript/issues/7662#issuecomment-219098036
#8563https://github.com/microsoft/TypeScript/issues/8563
https://github.com/Strate
Artur Eshenbrener (Strate)https://github.com/Strate
on Jun 10, 2016https://github.com/microsoft/TypeScript/issues/7662#issuecomment-225140081
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jun 10, 2016https://github.com/microsoft/TypeScript/issues/7662#issuecomment-225236522
https://github.com/Arnavion
Arnav Singh (Arnavion)https://github.com/Arnavion
on Jun 10, 2016https://github.com/microsoft/TypeScript/issues/7662#issuecomment-225239185
Artur Eshenbrener (@Strate)https://github.com/Strate
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/7662#event-1689644787
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/7662
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7662
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
TypeScript 2.0https://github.com/microsoft/TypeScript/milestone/1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.