René's URL Explorer Experiment


Title: `unique symbol` type lost after property is extracted from an object · Issue #43657 · microsoft/TypeScript · GitHub

Open Graph Title: `unique symbol` type lost after property is extracted from an object · Issue #43657 · microsoft/TypeScript

X Title: `unique symbol` type lost after property is extracted from an object · Issue #43657 · microsoft/TypeScript

Description: Bug Report Found while working on nodejs/node#38198 🔎 Search Terms unique symbol object ⏯ Playground Link Playground link with relevant code 💻 Code declare const kSomeConstant: unique symbol; declare function test(value: typeof kSomeCons...

Open Graph Description: Bug Report Found while working on nodejs/node#38198 🔎 Search Terms unique symbol object ⏯ Playground Link Playground link with relevant code 💻 Code declare const kSomeConstant: unique symbol; decla...

X Description: Bug Report Found while working on nodejs/node#38198 🔎 Search Terms unique symbol object ⏯ Playground Link Playground link with relevant code 💻 Code declare const kSomeConstant: unique symbol; decla...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`unique symbol` type lost after property is extracted from an object","articleBody":"# Bug Report\r\n\r\nFound while working on https://github.com/nodejs/node/pull/38198\r\n\r\n### 🔎 Search Terms\r\n\r\nunique symbol object\r\n\r\n### ⏯ Playground Link\r\n\r\n[Playground link with relevant code](https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEYD2A7AzgF3gawMpIFsQBhVTKFDALngFcUBLAR1oTQE8CAjJCAbgCwAKFCRYCAGb0wGBqngYQmABQA3KBFY0M7AA4gkEnPiKl0GChgCUNVUgbBBI8NDjwpKGXJTwA5iAwAUQAPXSQYDDRlG3gAb2F4RONCEjILSm09AyM8FLNySickhSVqBSzDEswnAF9hYQB6ACoEpORzeBBQmnihYuLc0zTLTP1KwdTzSyL+xMVMUeyqjBnEuqEmhuF2zE7Q+ABePwCQsIioq3qhBob4ZV0YJH0I9itkoamM8rGck0mCjDCLq6AB08wwymBIIm+XS1iuN0QaSRnzKHG4vG2yJ2cMOe1BMOGhSBoTBpWUOMsVicQA)\r\n\r\n### 💻 Code\r\n\r\n```ts\r\ndeclare const kSomeConstant: unique symbol;\r\ndeclare function test(value: typeof kSomeConstant): void;\r\ndeclare function getExports(): {\r\n    kSomeConstant: typeof kSomeConstant;\r\n    test: typeof test;\r\n}\r\n\r\n/*\r\n    const exp: {\r\n        kSomeConstant: typeof kSomeConstant;\r\n        test: typeof test;\r\n    }\r\n*/\r\nconst exp = getExports()\r\n\r\n// (property) kSomeConstant: typeof kSomeConstant\r\nexp.test(exp.kSomeConstant)\r\n\r\n// const constant: symbol\r\nconst constant = exp.kSomeConstant;\r\nexp.test(constant);\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\n`exp.test(constant)` is an error, because `constant`'s type is inferred to `symbol` instead of `typeof kSomeConstant`.\r\n\r\n### 🙂 Expected behavior\r\n\r\nThe extracted variable should have the same type","author":{"url":"https://github.com/targos","@type":"Person","name":"targos"},"datePublished":"2021-04-13T17:20:48Z","url":"https://github.com/microsoft/TypeScript/issues/43657"}

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:be497465-f5db-68ab-3e2d-7e1b83b47b62
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD3F0:367411:96B9EF:CDEA06:6B04811C
html-safe-nonce3d0d571e5fbdee085443b6db539c421dad7d9f5a2dc2831eb875f2a49387b07a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0YwOjM2NzQxMTo5NkI5RUY6Q0RFQTA2OjZCMDQ4MTFDIiwidmlzaXRvcl9pZCI6IjIwOTAyMzY4MTY2ODYwODg0NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace8a85ecdd2e7e297ef5d3df367b92595f76c3d90478b77aa09ba5a29fdf530ac
hovercard-subject-tagissue:857168778
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/43657/issue_layout
twitter:imagehttps://opengraph.githubassets.com/85d530774be4df5d442b4479b5e140c71fb97b913f21d02d6e1640ad18435ed6/microsoft/TypeScript/issues/43657
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85d530774be4df5d442b4479b5e140c71fb97b913f21d02d6e1640ad18435ed6/microsoft/TypeScript/issues/43657
og:image:altBug Report Found while working on nodejs/node#38198 🔎 Search Terms unique symbol object ⏯ Playground Link Playground link with relevant code 💻 Code declare const kSomeConstant: unique symbol; decla...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametargos
hostnamegithub.com
expected-hostnamegithub.com
None0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511
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
releaseed3f2e01f6b7672780c586c8af0e72726374d7b6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/43657#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F43657
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%2F43657
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/43657
Reloadhttps://github.com/microsoft/TypeScript/issues/43657
Reloadhttps://github.com/microsoft/TypeScript/issues/43657
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests319 (319)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/43657
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/43657
unique symbol type lost after property is extracted from an objecthttps://github.com/microsoft/TypeScript/issues/43657#top
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
https://github.com/targos
Michaël Zasso (targos)https://github.com/targos
on Apr 13, 2021https://github.com/microsoft/TypeScript/issues/43657#issue-857168778
nodejs/node#38198https://github.com/nodejs/node/pull/38198
Playground link with relevant codehttps://www.typescriptlang.org/play#code/CYUwxgNghgTiAEYD2A7AzgF3gawMpIFsQBhVTKFDALngFcUBLAR1oTQE8CAjJCAbgCwAKFCRYCAGb0wGBqngYQmABQA3KBFY0M7AA4gkEnPiKl0GChgCUNVUgbBBI8NDjwpKGXJTwA5iAwAUQAPXSQYDDRlG3gAb2F4RONCEjILSm09AyM8FLNySickhSVqBSzDEswnAF9hYQB6ACoEpORzeBBQmnihYuLc0zTLTP1KwdTzSyL+xMVMUeyqjBnEuqEmhuF2zE7Q+ABePwCQsIioq3qhBob4ZV0YJH0I9itkoamM8rGck0mCjDCLq6AB08wwymBIIm+XS1iuN0QaSRnzKHG4vG2yJ2cMOe1BMOGhSBoTBpWUOMsVicQA
Andrew Branch (andrewbranch)https://github.com/andrewbranch
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Apr 13, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4589648911
Andrew Branch (andrewbranch)https://github.com/andrewbranch
TypeScript 4.4.0https://github.com/microsoft/TypeScript/milestone/141
on Apr 13, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4589655175
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Armando Aguirre (armanio123)https://github.com/armanio123
on Apr 13, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4589656226
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Domain: LS: Refactoringse.g. extract to constant or function, rename symbolhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Refactorings%22
on Apr 13, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4589687784
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: LS: Refactoringse.g. extract to constant or function, rename symbolhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Refactorings%22
on Apr 22, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4633078719
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Armando Aguirre (armanio123)https://github.com/armanio123
on Apr 22, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4633078858
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.4.0https://github.com/microsoft/TypeScript/milestone/141
on Apr 22, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4633079010
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
on Apr 22, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4633079326
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 22, 2021https://github.com/microsoft/TypeScript/issues/43657#issuecomment-825134720
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
on Apr 24, 2021https://github.com/microsoft/TypeScript/issues/43657#issuecomment-826145863
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 24, 2021https://github.com/microsoft/TypeScript/issues/43657#event-4640319418
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/43657#event-20417395279
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/43657
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/43657
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.