René's URL Explorer Experiment


Title: [bug:7.5.3] Mapper class explicite field regression · Issue #61540 · microsoft/TypeScript · GitHub

Open Graph Title: [bug:7.5.3] Mapper class explicite field regression · Issue #61540 · microsoft/TypeScript

X Title: [bug:7.5.3] Mapper class explicite field regression · Issue #61540 · microsoft/TypeScript

Description: 🔎 Search Terms Mapper class explicite inference for primitive 🕗 Version & Regression Information This changed between versions 5.7.3 and 5.6.3 ⏯ Playground Link PLAYGROUND if need, here is a very simple and epurate playground without all...

Open Graph Description: 🔎 Search Terms Mapper class explicite inference for primitive 🕗 Version & Regression Information This changed between versions 5.7.3 and 5.6.3 ⏯ Playground Link PLAYGROUND if need, here is a very s...

X Description: 🔎 Search Terms Mapper class explicite inference for primitive 🕗 Version & Regression Information This changed between versions 5.7.3 and 5.6.3 ⏯ Playground Link PLAYGROUND if need, here is a ve...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[bug:7.5.3] Mapper class explicite field regression","articleBody":"### 🔎 Search Terms\n\nMapper class explicite inference for primitive\n\n### 🕗 Version & Regression Information\n\n- This changed between versions 5.7.3 and 5.6.3\n\n\n### ⏯ Playground Link\n\n[PLAYGROUND](https://www.typescriptlang.org/play/?ts=5.7.3#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXxhwmgCMIQAKeVALlWQFsSQZ4BKOx5mAWACh+IAB4AHHDAzwoJAM4YYUTPEhQZM+AEFZ8xZIDe-AJABtANYgAnjXhyYWVAHMAutfpMWRgMRbbugISuIABuLADc-AC+-PwqavAAKiBy8AZ8hiTIDvAAvNQgAO7K0HGphoYihCIsGBYAjDnwteFp5ZXVFgBMDYTE0uRUXWzNhhEUQ9FpiFhCDagFRarqpa04VRJ1nO6suU1GK2s1Xbk9pP3wg8Oj4wJpDOIgAEKZ9blzhbFLexWr7S+NUuowHg5MN9u0jgQiKdKOd2Jcxs0jHc4E8HBC3gs4sIMCBUMB1D4dEplt8DnUGvVVMpgRhQaTwd0oX0YRcjFdmlE+DUqvAALJQERrAA88QAfDlSmZ4PZ4OYLDhEAkXPAzAAaBJmJxODn8bkIfmClgdEXi7KS0zS-ByhUJAE2eT2LLY3H42XwAD8eRCrGspmVao1fu1kV1Fh5DAFawA+hksrkDcLEnJjAByWMppyi0LwAD0Ofg+XEFpl3pkuFo8AArAA6ABs1YAzKHw5GWFGpjN462YCKkhhUx2M1nc-nhFVMCBgPBrPT1rVrMYAESzmq1RfqtzcYN8PPwPf7+AAPXdzYQEcNMCjyJASYwfwTLF7yZT19RtSHzT18HP0evt4hD49reqavpkHQfqe37dh0MaZA0gHGsBaaZBBXJhme0HttM8HQU+-YpoOmahEAA)\n\nif need, here is a very simple and epurate playground without all the tests.\n[SMALL_PLAYGROUND](https://www.typescriptlang.org/play/?ts=5.7.3#code/MYewdgzgLgBAZgSwB4wLwzAUwO42AGwEMIIYBvAWACgBIGgBwCcR7NGoBPARgC4wBXALYAjNmhhcA3NTpMWbTgCZxi6bQC+ACgCUazqxgBZQvVaMAPABUAfGkq0A2gGsYCMDCeYOIODEsBdHidqdWpqfUwYQRMzAH1hfgBzcWNTNnMIn3hka0kYAHp8mGwQRhc3GAA3NggEcB4YAFYAOgA2ZoBmMKogA)\n### 💻 Code\n\nI have added some additional tests in order to gather more information and understand what is happening.\nBugs and fixes are the two adresse to verify.\n\n```ts\ndeclare function rollable( n:number ):number\n\nexport abstract class Abstract {\n\t[key: string]: number\n\t#Abstract!: never;\n}\n\nclass Test {\n\tbug = new class {\n\t\tproperty1 = 1;\n\t\tproperty2 = rollable( 2 );\n\t}();\n\n\tfix = new class {\n\t\tproperty1:number = 1;\n\t\tproperty2 = rollable( 2 );\n\t}();\n\n\tmoreBug1 = new class {\n\t\tproperty1 = 1 as const;\n\t\tproperty2 = rollable( 2 );\n\t}();\n\n\tmoreBug2 = new class extends Abstract {\n\t\tproperty1 = 1 as const;\n\t\tproperty2 = rollable( 2 );\n\t}();\n}\ntype Mapper\u003cT> ={\n\t[k in keyof T]: [k, T[k]];\n}\ntype Mapper2\u003cT> ={\n\t[k in keyof T as string extends k ? never : k]: [k, T[k]];\n}\ntype mapper_bug = Mapper\u003cTest['bug']>; // work in version: 5.6.3\ntype mapper_fix = Mapper\u003cTest['fix']>; // expected : property1: [\"property1\", number];\n//       ^?\ntype mapper_moreTest1 = Mapper\u003cTest['moreBug1']>;\ntype mapper_moreTest2 = Mapper\u003cTest['moreBug2']>;\ntype mapper2_bug = Mapper2\u003cTest['bug']>;\ntype mapper2_fix = Mapper2\u003cTest['fix']>;\n```\n\n\n### 🙁 Actual behavior\n\nthe mapper ignore the field declaration !!\n\n### 🙂 Expected behavior\n\nthe mapper should consider the field declaration !\n\n### Additional information about the issue\n\nNo, but I just spent a whole day trying to understand before realizing that it's a TypeScript issue! I am exhausted.\n\n![Image](https://github.com/user-attachments/assets/d82bb11d-8a53-4872-a754-8833ae178d2c)\n\n**please test the play ground in both version : 5.6.3 and 5.7.3**","author":{"url":"https://github.com/jonlepage","@type":"Person","name":"jonlepage"},"datePublished":"2025-04-06T16:07:18Z","url":"https://github.com/microsoft/TypeScript/issues/61540"}

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:dd257791-8101-894e-32a8-de3fc30c90ed
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB40:311640:317AF9A:3EF6DB6:6B01D2AD
html-safe-nonceb520f044d402a7942d7f4f11d069369009444e7205ac6f9a5109d72ec74edd78
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjQwOjMxMTY0MDozMTdBRjlBOjNFRjZEQjY6NkIwMUQyQUQiLCJ2aXNpdG9yX2lkIjoiMTEzMjAxMTk5MDY5NzQ5NzI2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac699c720e80ca285c5dc92c4d7236852d54e98edefe96b3d64e969a1cef9a4b59
hovercard-subject-tagissue:2975044938
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/61540/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f64b78fd5eb9c542e04cf5078ac34c87972ab2fd3ffe021d807d9f316ee3878e/microsoft/TypeScript/issues/61540
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f64b78fd5eb9c542e04cf5078ac34c87972ab2fd3ffe021d807d9f316ee3878e/microsoft/TypeScript/issues/61540
og:image:alt🔎 Search Terms Mapper class explicite inference for primitive 🕗 Version & Regression Information This changed between versions 5.7.3 and 5.6.3 ⏯ Playground Link PLAYGROUND if need, here is a very s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejonlepage
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/61540#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F61540
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%2F61540
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/61540
Reloadhttps://github.com/microsoft/TypeScript/issues/61540
Reloadhttps://github.com/microsoft/TypeScript/issues/61540
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/61540
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/61540
[bug:7.5.3] Mapper class explicite field regressionhttps://github.com/microsoft/TypeScript/issues/61540#top
https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: Mapped TypesThe issue relates to mapped typeshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Mapped%20Types%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 5.9.0https://github.com/microsoft/TypeScript/milestone/214
https://github.com/jonlepage
jon lepage (jonlepage)https://github.com/jonlepage
on Apr 6, 2025https://github.com/microsoft/TypeScript/issues/61540#issue-2975044938
PLAYGROUNDhttps://www.typescriptlang.org/play/?ts=5.7.3#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXxhwmgCMIQAKeVALlWQFsSQZ4BKOx5mAWACh+IAB4AHHDAzwoJAM4YYUTPEhQZM+AEFZ8xZIDe-AJABtANYgAnjXhyYWVAHMAutfpMWRgMRbbugISuIABuLADc-AC+-PwqavAAKiBy8AZ8hiTIDvAAvNQgAO7K0HGphoYihCIsGBYAjDnwteFp5ZXVFgBMDYTE0uRUXWzNhhEUQ9FpiFhCDagFRarqpa04VRJ1nO6suU1GK2s1Xbk9pP3wg8Oj4wJpDOIgAEKZ9blzhbFLexWr7S+NUuowHg5MN9u0jgQiKdKOd2Jcxs0jHc4E8HBC3gs4sIMCBUMB1D4dEplt8DnUGvVVMpgRhQaTwd0oX0YRcjFdmlE+DUqvAALJQERrAA88QAfDlSmZ4PZ4OYLDhEAkXPAzAAaBJmJxODn8bkIfmClgdEXi7KS0zS-ByhUJAE2eT2LLY3H42XwAD8eRCrGspmVao1fu1kV1Fh5DAFawA+hksrkDcLEnJjAByWMppyi0LwAD0Ofg+XEFpl3pkuFo8AArAA6ABs1YAzKHw5GWFGpjN462YCKkhhUx2M1nc-nhFVMCBgPBrPT1rVrMYAESzmq1RfqtzcYN8PPwPf7+AAPXdzYQEcNMCjyJASYwfwTLF7yZT19RtSHzT18HP0evt4hD49reqavpkHQfqe37dh0MaZA0gHGsBaaZBBXJhme0HttM8HQU+-YpoOmahEAA
SMALL_PLAYGROUNDhttps://www.typescriptlang.org/play/?ts=5.7.3#code/MYewdgzgLgBAZgSwB4wLwzAUwO42AGwEMIIYBvAWACgBIGgBwCcR7NGoBPARgC4wBXALYAjNmhhcA3NTpMWbTgCZxi6bQC+ACgCUazqxgBZQvVaMAPABUAfGkq0A2gGsYCMDCeYOIODEsBdHidqdWpqfUwYQRMzAH1hfgBzcWNTNnMIn3hka0kYAHp8mGwQRhc3GAA3NggEcB4YAFYAOgA2ZoBmMKogA
https://private-user-images.githubusercontent.com/24865815/430719201-d82bb11d-8a53-4872-a754-8833ae178d2c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyODE4ODEsIm5iZiI6MTc5NTI4MTU4MSwicGF0aCI6Ii8yNDg2NTgxNS80MzA3MTkyMDEtZDgyYmIxMWQtOGE1My00ODcyLWE3NTQtODgzM2FlMTc4ZDJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDE3MTk0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwYWQ5YTU2Mjc2YWRkYWM3MTBlN2FlNTAxOGRkMmQ3YzRkYmRkNzBhMWMzYzJjY2MwZGU5MDY5YzNlYjY3NGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.RCF7H7fDWgnrYw5BPnPHgV5xb5fviTkowMH_j305asI
jon lepage (jonlepage)https://github.com/jonlepage
on Apr 6, 2025https://github.com/microsoft/TypeScript/issues/61540#event-17143709089
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Apr 7, 2025https://github.com/microsoft/TypeScript/issues/61540#issuecomment-2783215675
#59282https://github.com/microsoft/TypeScript/pull/59282
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 8, 2025https://github.com/microsoft/TypeScript/issues/61540#issuecomment-2787647648
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Apr 8, 2025https://github.com/microsoft/TypeScript/issues/61540#event-17178356744
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
on Apr 8, 2025https://github.com/microsoft/TypeScript/issues/61540#event-17178357171
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.9.0https://github.com/microsoft/TypeScript/milestone/214
on Apr 8, 2025https://github.com/microsoft/TypeScript/issues/61540#event-17178357653
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Domain: Mapped TypesThe issue relates to mapped typeshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Mapped%20Types%22
on Oct 15, 2025https://github.com/microsoft/TypeScript/issues/61540#event-20306566895
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Sep 19, 2026https://github.com/microsoft/TypeScript/issues/61540#issuecomment-5738837608
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
Needs Human ReviewThis issue has a backlog check awaiting maintainer review.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Human%20Review%22
on Sep 19, 2026https://github.com/microsoft/TypeScript/issues/61540#event-31431118014
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 19, 2026https://github.com/microsoft/TypeScript/issues/61540#event-31431118367
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs Human ReviewThis issue has a backlog check awaiting maintainer review.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Human%20Review%22
on Sep 23, 2026https://github.com/microsoft/TypeScript/issues/61540#event-31704945814
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/61540
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/61540
Wesley Wigham (weswigham)https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: Mapped TypesThe issue relates to mapped typeshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Mapped%20Types%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 5.9.0https://github.com/microsoft/TypeScript/milestone/214
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.