René's URL Explorer Experiment


Title: fix(lib): preserve readonly narrowing in Array.isArray type guard by daishuge · Pull Request #63609 · microsoft/TypeScript · GitHub

Open Graph Title: fix(lib): preserve readonly narrowing in Array.isArray type guard by daishuge · Pull Request #63609 · microsoft/TypeScript

X Title: fix(lib): preserve readonly narrowing in Array.isArray type guard by daishuge · Pull Request #63609 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - fix(lib): preserve readonly narrowing in Array.isArray type guard by daishuge · Pull Request #63609 · microsoft/TypeScript

Open Graph Description: @ Fixes #17002 Problem Array.isArray() narrows to arg is any[], which silently drops the readonly modifier when the input type already carries it: function f(x: readonly string[] | string) { if...

X Description: @ Fixes #17002 Problem Array.isArray() narrows to arg is any[], which silently drops the readonly modifier when the input type already carries it: function f(x: readonly string[] | string) { if...

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

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:25be62a2-fa84-bd3f-e04f-8158757f531c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA706:1087D4:26EE738:340CC59:6B01B1C2
html-safe-nonce5bae6fcf094623164120ce1e1865c34b328e4a10fdca9c9ba1403be58c4c62c1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzA2OjEwODdENDoyNkVFNzM4OjM0MENDNTk6NkIwMUIxQzIiLCJ2aXNpdG9yX2lkIjoiNDUyODcyMDQyOTAyMzYwNTE4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac466ad49c199e1da18836ad33944916a8ed83a21cd15dc3ea695352e2a182b687
hovercard-subject-tagpull_request:3993087208
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/63609/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f3f93e8b58ca9b2746fe2fcf52d73ee9f28a3c2140f0ee0ad393b98127dd5b79/microsoft/TypeScript/pull/63609
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f3f93e8b58ca9b2746fe2fcf52d73ee9f28a3c2140f0ee0ad393b98127dd5b79/microsoft/TypeScript/pull/63609
og:image:alt@ Fixes #17002 Problem Array.isArray() narrows to arg is any[], which silently drops the readonly modifier when the input type already carries it: function f(x: readonly string[] | string) { if...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedaishuge
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/63609#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F63609
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%2F63609
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/63609
Reloadhttps://github.com/microsoft/TypeScript/pull/63609
Reloadhttps://github.com/microsoft/TypeScript/pull/63609
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
Dai Luo (daishuge)https://github.com/daishuge
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
daishuge:fix/array-isarray-readonly-narrowinghttps://github.com/daishuge/TypeScript/tree/fix/array-isarray-readonly-narrowing
Conversationhttps://github.com/microsoft/TypeScript/pull/63609
Commits1 (1)https://github.com/microsoft/TypeScript/pull/63609/commits
Checkshttps://github.com/microsoft/TypeScript/pull/63609/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/63609/files
fix(lib): preserve readonly narrowing in Array.isArray type guardhttps://github.com/microsoft/TypeScript/pull/63609#top
Dai Luo (daishuge)https://github.com/daishuge
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
daishuge:fix/array-isarray-readonly-narrowinghttps://github.com/daishuge/TypeScript/tree/fix/array-isarray-readonly-narrowing
https://github.com/daishuge
Dai Luo (daishuge)https://github.com/daishuge
Jul 5, 2026https://github.com/microsoft/TypeScript/pull/63609#issue-4812177537
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
#17002https://github.com/microsoft/TypeScript/issues/17002
#17002https://github.com/microsoft/TypeScript/issues/17002
Sigurd Spieckermann (@sisp)https://github.com/sisp
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
https://github.com/daishuge
https://github.com/claude
fix(lib): preserve readonly narrowing in Array.isArray type guardhttps://github.com/microsoft/TypeScript/pull/63609/commits/ecaa87d39c1aa86ffebef1d6b43f2b507fb4ba00
ecaa87dhttps://github.com/microsoft/TypeScript/pull/63609/commits/ecaa87d39c1aa86ffebef1d6b43f2b507fb4ba00
microsoft#17002https://github.com/microsoft/TypeScript/issues/17002
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
Jul 5, 2026https://github.com/microsoft/TypeScript/pull/63609#event-27570558043
https://github.com/daishuge
Dai Luo (daishuge)https://github.com/daishuge
Jul 5, 2026https://github.com/microsoft/TypeScript/pull/63609#issuecomment-4885475302
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
https://github.com/daishuge
Dai Luo (daishuge)https://github.com/daishuge
July 5, 2026 09:11https://github.com/microsoft/TypeScript/pull/63609#event-27570942929
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
July 5, 2026 09:11https://github.com/microsoft/TypeScript/pull/63609#event-27570943114
https://github.com/apps/typescript-automation
typescript-automationhttps://github.com/apps/typescript-automation
Jul 5, 2026https://github.com/microsoft/TypeScript/pull/63609#issuecomment-4885496605
#17002https://github.com/microsoft/TypeScript/issues/17002
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
https://github.com/apps/typescript-automation
typescript-automationhttps://github.com/apps/typescript-automation
Jul 5, 2026https://github.com/microsoft/TypeScript/pull/63609#issuecomment-4885496673
#17002https://github.com/microsoft/TypeScript/issues/17002
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
started reviewinghttps://github.com/microsoft/TypeScript/sessions/fbcfa913-86c9-439b-bafc-67c861e3664f
Dai Luo (daishuge)https://github.com/daishuge
July 5, 2026 09:11https://github.com/microsoft/TypeScript/pull/63609#event-27570949117
View session https://github.com/microsoft/TypeScript/sessions/fbcfa913-86c9-439b-bafc-67c861e3664f
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Jul 5, 2026 https://github.com/microsoft/TypeScript/pull/63609#pullrequestreview-4631058209
View reviewed changes https://github.com/microsoft/TypeScript/pull/63609/files/ecaa87d39c1aa86ffebef1d6b43f2b507fb4ba00
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/TypeScript/pull/63609#pullrequestreview-4631058209
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
tests/cases/compiler/arrayIsArrayReadonlyNarrowing.tshttps://github.com/microsoft/TypeScript/pull/63609/files/ecaa87d39c1aa86ffebef1d6b43f2b507fb4ba00#diff-d9ade6482c5c824f9361af84173d24cd1e44a81e357dfa222fe27664dde5af48
https://github.com/daishuge
Dai Luo (daishuge)https://github.com/daishuge
Jul 5, 2026 https://github.com/microsoft/TypeScript/pull/63609#ref-issue-241226715
Array.isArray type narrows to any[] for ReadonlyArray #17002 https://github.com/microsoft/TypeScript/issues/17002
https://github.com/anderson-pete
Pete Anderson (anderson-pete)https://github.com/anderson-pete
Jul 6, 2026https://github.com/microsoft/TypeScript/pull/63609#issuecomment-4896919593
Playground linkhttps://www.typescriptlang.org/play/#code/GYVwdgxgLglg9mABDAzgQQE4YIYE8AU2GA5gFyIYCm2AJggDa6LZi4DaAuogD7OsCU5IsWQoK1OmEZ92HANwAoUJFgJRmHAWFCBQkqJmc5iAPQnEAFQAWqRHABulDPTi0DYSo4yIIVuCkowADolcGh4JFQNPEISHVx+RABvBUQ08SgQDEj0LBjhfkUAXwVQlQiZWLIZQUR7OBgaZNT0mGBEfCi8rRJ+RJT0weYSIIAHEBQrfCSiwtNzCwBlACYAZlWATnIABQw4UacoJgByccnjxDpKMTA4KERKAA9Ue7Ujg8RjqloGJhZZY4hQYlEplcJqcAAa1uAHcwFVyFDYWBavVGs1Bm0Ol1NFU+hihmlhGMJlMZnMzJYVustohdvtDiczlYLlcbncHs8UK8kO9KJ9vpJpP9OICWmkQaVlOCkHAAEYAK0o0ARdkVyqgqIaTQGrXanVyuIK-XFQ2JzOms2MlKWa02Oz2BwwR0+zNZcGuiFu9yeLzsvNwHy+El+hg4YuBClB0tUSAAtng5ZQAPLq6DRHrVeVK6A8NU5qCcLXo3VpLEGjN4k2EokjC3k60Lan2umOxmu0nuz3ezl+t6B-nBn5SP6sTh57Ma0VA9IgoA
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Jul 7, 2026https://github.com/microsoft/TypeScript/pull/63609#issuecomment-4906326308
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Jul 7, 2026https://github.com/microsoft/TypeScript/pull/63609#event-27675684676
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 7, 2026 https://github.com/microsoft/TypeScript/pull/63609#ref-pullrequest-5089311017
refactor(factory-ui): guard workspace queries with skipToken mastra-ai/mastra#20913 https://github.com/mastra-ai/mastra/pull/20913
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 18, 2026 https://github.com/microsoft/TypeScript/pull/63609#ref-pullrequest-5179658975
feat: port F-29 to F-49 advanced features from v0-n-docs to main sverka-dev/sverka#75 https://github.com/sverka-dev/sverka/pull/75
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%2F63609
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/63609/files/ecaa87d39c1aa86ffebef1d6b43f2b507fb4ba00
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Array.isArray type narrows to any[] for ReadonlyArray https://github.com/microsoft/TypeScript/issues/17002
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/63609
https://github.com/daishuge
https://github.com/anderson-pete
https://github.com/RyanCavanaugh
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.