René's URL Explorer Experiment


Title: Fix empty object falsiness by ahejlsberg · Pull Request #27157 · microsoft/TypeScript · GitHub

Open Graph Title: Fix empty object falsiness by ahejlsberg · Pull Request #27157 · microsoft/TypeScript

X Title: Fix empty object falsiness by ahejlsberg · Pull Request #27157 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Fix empty object falsiness by ahejlsberg · Pull Request #27157 · microsoft/TypeScript

Open Graph Description: We currently consider {} and unconstrained type parameters to never be falsy in --strictNullChecks mode. This is wrong as {} or an unconstrained type parameter might represent a string, number, or ...

X Description: We currently consider {} and unconstrained type parameters to never be falsy in --strictNullChecks mode. This is wrong as {} or an unconstrained type parameter might represent a string, number, or ...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/27157

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7728f6b8-ec2f-f6cb-268d-5258b41e67b8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBE1A:18ADFF:4D579E:68B501:6B049CE4
html-safe-nonce11ff89967233bc0fdb5aa2ed0dcb8093e482c83c18962e975a509d86ceb31831
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTFBOjE4QURGRjo0RDU3OUU6NjhCNTAxOjZCMDQ5Q0U0IiwidmlzaXRvcl9pZCI6IjYwMzQ1OTY4MTgzOTMwMTM0NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacabe4e9301117d5228ae954159365354ce91acf48c2102bcb0098a3880ecb76ed
hovercard-subject-tagpull_request:216108399
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/27157/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/84639d18c81ecb23a74b4f21c1e7c3494efc760a50eb93c187ef4fded66bbef7/microsoft/TypeScript/pull/27157
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/84639d18c81ecb23a74b4f21c1e7c3494efc760a50eb93c187ef4fded66bbef7/microsoft/TypeScript/pull/27157
og:image:altWe currently consider {} and unconstrained type parameters to never be falsy in --strictNullChecks mode. This is wrong as {} or an unconstrained type parameter might represent a string, number, or ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
None9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d
turbo-cache-controlno-cache
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
release3fd14143b75b2af7b76bbd23b069867d091adfcc
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/27157#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F27157
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%2Fpull%2F27157
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/27157
Reloadhttps://github.com/microsoft/TypeScript/pull/27157
Reloadhttps://github.com/microsoft/TypeScript/pull/27157
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests318 (318)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
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
fixEmptyObjectFalsinesshttps://github.com/microsoft/TypeScript/tree/fixEmptyObjectFalsiness
Conversationhttps://github.com/microsoft/TypeScript/pull/27157
Commits6 (6)https://github.com/microsoft/TypeScript/pull/27157/commits
Checkshttps://github.com/microsoft/TypeScript/pull/27157/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/27157/files
Fix empty object falsinesshttps://github.com/microsoft/TypeScript/pull/27157#top
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
fixEmptyObjectFalsinesshttps://github.com/microsoft/TypeScript/tree/fixEmptyObjectFalsiness
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#issue-361035466
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
#18196https://github.com/microsoft/TypeScript/issues/18196
#27181https://github.com/microsoft/TypeScript/issues/27181
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
September 17, 2018 09:06https://github.com/microsoft/TypeScript/pull/27157#commits-pushed-acb8b1f
https://github.com/ahejlsberg
Correct falsiness for {} empty object typehttps://github.com/microsoft/TypeScript/pull/27157/commits/acb8b1f65fbb59510c007586307ee3c9206c0b65
acb8b1fhttps://github.com/microsoft/TypeScript/pull/27157/commits/acb8b1f65fbb59510c007586307ee3c9206c0b65
https://github.com/ahejlsberg
Fix resulting issue in compilerhttps://github.com/microsoft/TypeScript/pull/27157/commits/46de5067b038536545dd9d7f956971e9160d15e8
46de506https://github.com/microsoft/TypeScript/pull/27157/commits/46de5067b038536545dd9d7f956971e9160d15e8
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/27157/commits/92c17cebcb86a1b2ca0086af02aa7e93d2731c0c
92c17cehttps://github.com/microsoft/TypeScript/pull/27157/commits/92c17cebcb86a1b2ca0086af02aa7e93d2731c0c
https://github.com/ahejlsberg
Add testshttps://github.com/microsoft/TypeScript/pull/27157/commits/eb06af19013e0265895d446b0b9f177dcf3541fa
eb06af1https://github.com/microsoft/TypeScript/pull/27157/commits/eb06af19013e0265895d446b0b9f177dcf3541fa
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/27157/commits/17080eb58f27a75cc2bb8e21308b7990d3751849
17080ebhttps://github.com/microsoft/TypeScript/pull/27157/commits/17080eb58f27a75cc2bb8e21308b7990d3751849
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
September 17, 2018 20:42https://github.com/microsoft/TypeScript/pull/27157#event-1850801147
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Sep 17, 2018 https://github.com/microsoft/TypeScript/pull/27157#ref-issue-360334617
Generic parameter is considered object #27093 https://github.com/microsoft/TypeScript/issues/27093
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Sep 17, 2018 https://github.com/microsoft/TypeScript/pull/27157#pullrequestreview-156111347
View reviewed changes https://github.com/microsoft/TypeScript/pull/27157/files/17080eb58f27a75cc2bb8e21308b7990d3751849
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/27157/files/17080eb58f27a75cc2bb8e21308b7990d3751849#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Wesley Wigham (weswigham)https://github.com/weswigham
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#discussion_r218221434
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#discussion_r218222762
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
Wesley Wigham (weswigham)https://github.com/weswigham
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#discussion_r218224389
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#issuecomment-422166537
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#issuecomment-422168096
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#issuecomment-422168113
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
Wesley Wigham (@weswigham)https://github.com/weswigham
17080ebhttps://github.com/microsoft/TypeScript/commit/17080eb58f27a75cc2bb8e21308b7990d3751849
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=12154
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#issuecomment-422173126
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#issuecomment-422189398
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.1https://github.com/microsoft/TypeScript/milestone/74
Sep 17, 2018https://github.com/microsoft/TypeScript/pull/27157#event-1851021616
https://github.com/ahejlsberg
Merge branch 'master' into fixEmptyObjectFalsinesshttps://github.com/microsoft/TypeScript/pull/27157/commits/c0eb742cf3ec753c142b59ec28fe8d3110314494
c0eb742https://github.com/microsoft/TypeScript/pull/27157/commits/c0eb742cf3ec753c142b59ec28fe8d3110314494
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Sep 18, 2018 https://github.com/microsoft/TypeScript/pull/27157#ref-issue-361237816
Switch on typeof for keyof type loses information #27181 https://github.com/microsoft/TypeScript/issues/27181
Jack Williams (jack-williams)https://github.com/jack-williams
Sep 18, 2018 https://github.com/microsoft/TypeScript/pull/27157#ref-commit-b6a836a
https://github.com/jack-williams
Remove fix for keyof types, fixed byhttps://github.com/jack-williams/TypeScript/commit/b6a836adeed6a54c040f41507fbbfd4b8c7843e6
microsoft#27157https://github.com/microsoft/TypeScript/pull/27157
b6a836ahttps://github.com/jack-williams/TypeScript/commit/b6a836adeed6a54c040f41507fbbfd4b8c7843e6
https://github.com/jack-williams
Jack Williams (jack-williams)https://github.com/jack-williams
Sep 18, 2018 https://github.com/microsoft/TypeScript/pull/27157#ref-pullrequest-361238099
Bring typeof switch behaviour inline with if #27182 https://github.com/microsoft/TypeScript/pull/27182
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
6adb9d1https://github.com/microsoft/TypeScript/commit/6adb9d194f6dc17ec2ee0f5548bc27eb8022af70
Sep 18, 2018https://github.com/microsoft/TypeScript/pull/27157#event-1852883855
https://github.com/ljharb
Jordan Harband (ljharb)https://github.com/ljharb
Sep 18, 2018 https://github.com/microsoft/TypeScript/pull/27157#ref-issue-360463691
Type narrowed to never, incorrectly #27103 https://github.com/microsoft/TypeScript/issues/27103
https://github.com/uhyo
uhyo (uhyo)https://github.com/uhyo
May 19, 2019 https://github.com/microsoft/TypeScript/pull/27157#ref-issue-445789512
Unsoundness in coercion from object to boolean #31464 https://github.com/microsoft/TypeScript/issues/31464
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
May 24, 2019 13:57https://github.com/microsoft/TypeScript/pull/27157#event-2365634668
https://github.com/chancancode
Godfrey Chan (chancancode)https://github.com/chancancode
Jun 17, 2020 https://github.com/microsoft/TypeScript/pull/27157#ref-issue-640171909
Subtype narrowing bug with falsey types (''/0/[]) #39105 https://github.com/microsoft/TypeScript/issues/39105
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/27157#event-20415799704
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/27157#event-20415800634
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F27157
https://github.com/weswigham
Wesley Wigham (weswigham) https://github.com/weswigham
https://github.com/microsoft/TypeScript/pull/27157/files/17080eb58f27a75cc2bb8e21308b7990d3751849
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) https://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg) https://github.com/ahejlsberg
TypeScript 3.1 https://github.com/microsoft/TypeScript/milestone/74
Switch on typeof for keyof type loses information https://github.com/microsoft/TypeScript/issues/27181
Type narrowing bug in empty interfaces https://github.com/microsoft/TypeScript/issues/18196
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27157
https://github.com/ahejlsberg
https://github.com/DanielRosenwasser
https://github.com/weswigham
https://github.com/typescript-bot
https://github.com/RyanCavanaugh
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.