René's URL Explorer Experiment


Title: fix(64974): fix contextual typing for destructured parameter defaults by a-tarasyuk · Pull Request #64978 · microsoft/TypeScript · GitHub

Open Graph Title: fix(64974): fix contextual typing for destructured parameter defaults by a-tarasyuk · Pull Request #64978 · microsoft/TypeScript

X Title: fix(64974): fix contextual typing for destructured parameter defaults by a-tarasyuk · Pull Request #64978 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - fix(64974): fix contextual typing for destructured parameter defaults by a-tarasyuk · Pull Request #64978 · microsoft/TypeScript

Open Graph Description: Fixes #64974

X Description: Fixes #64974

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

X: @github

direct link

Domain: github.com

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:db69bf45-1a26-8a0f-c3cc-bb260e00a99e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE812:2564D8:B3B5AD:EF12A2:6B00EE2B
html-safe-noncee2ff9b40b79c1617860f62e4c2072e2d5eb68feac9ba9da4a9864354340beda2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODEyOjI1NjREODpCM0I1QUQ6RUYxMkEyOjZCMDBFRTJCIiwidmlzaXRvcl9pZCI6IjE1MzI4ODI0OTY5ODE2MjY0MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac47838b552bb3d7a6b9535a8e55e65f1ec4a68b5c7eba1f4d84334259b7b8e81a
hovercard-subject-tagpull_request:5032107119
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/64978/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/28d2ed498566e8e9218ad2ac011e80bbff8403a54b3ef71b9decec3d9f041d76/microsoft/TypeScript/pull/64978
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/28d2ed498566e8e9218ad2ac011e80bbff8403a54b3ef71b9decec3d9f041d76/microsoft/TypeScript/pull/64978
og:image:altFixes #64974
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamea-tarasyuk
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/64978#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F64978
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%2F64978
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/64978
Reloadhttps://github.com/microsoft/TypeScript/pull/64978
Reloadhttps://github.com/microsoft/TypeScript/pull/64978
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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
Oleksandr Tarasiuk (a-tarasyuk)https://github.com/a-tarasyuk
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
a-tarasyuk:fix/64974https://github.com/a-tarasyuk/TypeScript/tree/fix/64974
Conversationhttps://github.com/microsoft/TypeScript/pull/64978
Commits5 (5)https://github.com/microsoft/TypeScript/pull/64978/commits
Checkshttps://github.com/microsoft/TypeScript/pull/64978/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/64978/files
fix(64974): fix contextual typing for destructured parameter defaultshttps://github.com/microsoft/TypeScript/pull/64978#top
Oleksandr Tarasiuk (a-tarasyuk)https://github.com/a-tarasyuk
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
a-tarasyuk:fix/64974https://github.com/a-tarasyuk/TypeScript/tree/fix/64974
https://github.com/a-tarasyuk
Oleksandr Tarasiuk (a-tarasyuk)https://github.com/a-tarasyuk
Oct 27, 2026https://github.com/microsoft/TypeScript/pull/64978#issue-6057066908
#64974https://github.com/microsoft/TypeScript/issues/64974
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/64978
https://github.com/a-tarasyuk
fix(64974): fix contextual typing for destructured parameter defaultshttps://github.com/microsoft/TypeScript/pull/64978/commits/09da3d0bcd21676f2290e51181b3ceafee8ae5ce
09da3d0https://github.com/microsoft/TypeScript/pull/64978/commits/09da3d0bcd21676f2290e51181b3ceafee8ae5ce
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
October 27, 2026 10:08https://github.com/microsoft/TypeScript/pull/64978#event-34353144817
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Oct 27, 2026https://github.com/microsoft/TypeScript/pull/64978#event-34353146919
https://github.com/apps/typescript-automation
typescript-automationhttps://github.com/apps/typescript-automation
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Oct 27, 2026https://github.com/microsoft/TypeScript/pull/64978#event-34353148808
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Oct 27, 2026https://github.com/microsoft/TypeScript/pull/64978#event-34353150225
started reviewinghttps://github.com/microsoft/TypeScript/sessions/11d7bb23-34a1-4e11-a692-55222fe95cf8
Oleksandr Tarasiuk (a-tarasyuk)https://github.com/a-tarasyuk
October 27, 2026 10:09https://github.com/microsoft/TypeScript/pull/64978#event-34353248895
View session https://github.com/microsoft/TypeScript/sessions/11d7bb23-34a1-4e11-a692-55222fe95cf8
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Oct 27, 2026 https://github.com/microsoft/TypeScript/pull/64978#pullrequestreview-5665376733
View reviewed changes https://github.com/microsoft/TypeScript/pull/64978/files/09da3d0bcd21676f2290e51181b3ceafee8ae5ce
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/TypeScript/pull/64978#pullrequestreview-5665376733
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#64974https://github.com/microsoft/TypeScript/issues/64974
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/64978
https://github.com/a-tarasyuk
add additional testshttps://github.com/microsoft/TypeScript/pull/64978/commits/667c4f22010895da2907e930ee6ecbdcbb50fa36
667c4f2https://github.com/microsoft/TypeScript/pull/64978/commits/667c4f22010895da2907e930ee6ecbdcbb50fa36
https://github.com/timurzvural
Timur Vural (timurzvural)https://github.com/timurzvural
Oct 29, 2026 https://github.com/microsoft/TypeScript/pull/64978#ref-pullrequest-6107135757
fix(65011): preserve contextual types for destructured parameter defaults #65016 https://github.com/microsoft/TypeScript/pull/65016
https://github.com/timurzvural
Timur Vural (timurzvural)https://github.com/timurzvural
Oct 29, 2026https://github.com/microsoft/TypeScript/pull/64978#issuecomment-6506497425
#65016https://github.com/microsoft/TypeScript/pull/65016
#65011https://github.com/microsoft/TypeScript/issues/65011
#65011https://github.com/microsoft/TypeScript/issues/65011
#64974https://github.com/microsoft/TypeScript/issues/64974
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/64978
https://github.com/timurzvural
Timur Vural (timurzvural)https://github.com/timurzvural
Oct 29, 2026 https://github.com/microsoft/TypeScript/pull/64978#ref-issue-6106295038
Regression in 7.1: contextual parameter type is lost for a destructuring pattern with a default (TS7031) #65011 https://github.com/microsoft/TypeScript/issues/65011
https://github.com/nrjdalal
Neeraj Dalal (nrjdalal)https://github.com/nrjdalal
Oct 30, 2026https://github.com/microsoft/TypeScript/pull/64978#issuecomment-6512865798
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/64978
https://github.com/timurzvural
Timur Vural (timurzvural)https://github.com/timurzvural
Oct 30, 2026https://github.com/microsoft/TypeScript/pull/64978#issuecomment-6513976139
#65016https://github.com/microsoft/TypeScript/pull/65016
#64974https://github.com/microsoft/TypeScript/issues/64974
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/64978
Oleksandr Tarasiuk (a-tarasyuk)https://github.com/a-tarasyuk
October 30, 2026 12:08https://github.com/microsoft/TypeScript/pull/64978#commits-pushed-e0fce9a
https://github.com/a-tarasyuk
add additional testshttps://github.com/microsoft/TypeScript/pull/64978/commits/e0fce9a0cb17aaa809aa7ea39807d3d74b64b52c
e0fce9ahttps://github.com/microsoft/TypeScript/pull/64978/commits/e0fce9a0cb17aaa809aa7ea39807d3d74b64b52c
https://github.com/a-tarasyuk
add jsdoc testshttps://github.com/microsoft/TypeScript/pull/64978/commits/7981eae82bc17bce66fc146885eaf86e7a0919d8
7981eaehttps://github.com/microsoft/TypeScript/pull/64978/commits/7981eae82bc17bce66fc146885eaf86e7a0919d8
https://github.com/a-tarasyuk
Merge branch 'main' ofhttps://github.com/microsoft/TypeScript/pull/64978/commits/4673abddc7cb7c97356a12413e83568540ad9f0d
https://github.com/microsoft/TypeScripthttps://github.com/microsoft/TypeScript
into f…https://github.com/microsoft/TypeScript/pull/64978/commits/4673abddc7cb7c97356a12413e83568540ad9f0d
4673abdhttps://github.com/microsoft/TypeScript/pull/64978/commits/4673abddc7cb7c97356a12413e83568540ad9f0d
https://github.com/apps/typescript-automation
typescript-automationhttps://github.com/apps/typescript-automation
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Oct 30, 2026https://github.com/microsoft/TypeScript/pull/64978#event-34708800519
https://github.com/timurzvural
Timur Vural (timurzvural)https://github.com/timurzvural
Oct 31, 2026 https://github.com/microsoft/TypeScript/pull/64978#ref-pullrequest-6129410044
fix(65069): preserve contextual types for array-destructured parameter defaults #65070 https://github.com/microsoft/TypeScript/pull/65070
https://github.com/maschwenk
Max Schwenk (maschwenk)https://github.com/maschwenk
Nov 11, 2026 https://github.com/microsoft/TypeScript/pull/64978#ref-issue-6049341337
7.1: destructured parameter with a = {} default loses its contextual type (TS7031) #64974 https://github.com/microsoft/TypeScript/issues/64974
https://github.com/abrahamguo
Abraham Guo (abrahamguo)https://github.com/abrahamguo
Nov 16, 2026 https://github.com/microsoft/TypeScript/pull/64978#ref-issue-5574723985
TS7031 false positive for nested object binding pattern with = {} default in an annotated parameter (regression from #64043) #64431 https://github.com/microsoft/TypeScript/issues/64431
Skip default padding for params with declared/contextual types #65542 https://github.com/microsoft/TypeScript/pull/65542
Revert "Align object binding defaults with arrays" #65556 https://github.com/microsoft/TypeScript/pull/65556
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
#65556 https://github.com/microsoft/TypeScript/pull/65556
Nov 18, 2026https://github.com/microsoft/TypeScript/pull/64978#event-36471290290
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Nov 18, 2026https://github.com/microsoft/TypeScript/pull/64978#event-36471295897
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F64978
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Learn more about Copilot code review.https://gh.io/copilot-code-review-docs
https://github.com/microsoft/TypeScript/pull/64978/files/09da3d0bcd21676f2290e51181b3ceafee8ae5ce
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/64978
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
PR Backlog https://github.com/orgs/microsoft/projects/1252
7.1: destructured parameter with a = {} default loses its contextual type (TS7031) https://github.com/microsoft/TypeScript/issues/64974
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/64978
https://github.com/a-tarasyuk
https://github.com/timurzvural
https://github.com/nrjdalal
https://github.com/apps/copilot-pull-request-reviewer
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.