René's URL Explorer Experiment


Title: Improve checking of complex rest parameter types by ahejlsberg · Pull Request #26676 · microsoft/TypeScript · GitHub

Open Graph Title: Improve checking of complex rest parameter types by ahejlsberg · Pull Request #26676 · microsoft/TypeScript

X Title: Improve checking of complex rest parameter types by ahejlsberg · Pull Request #26676 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Improve checking of complex rest parameter types by ahejlsberg · Pull Request #26676 · microsoft/TypeScript

Open Graph Description: With this PR we properly check rest parameters of any subtype of any[], including user-defined array types and unions of tuple types. In cases where a rest parameter type is not exactly a T[] or a ...

X Description: With this PR we properly check rest parameters of any subtype of any[], including user-defined array types and unions of tuple types. In cases where a rest parameter type is not exactly a T[] or a ...

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

X: @github

direct link

Domain: github.com

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:0b519deb-56fd-e8a6-8df1-91d0b746a53f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC3C2:196FB5:1F6C07:2A5DBE:6A61A034
html-safe-nonce860bcb7443364678ff5a1073b2e69bd16d6902d7fb7f1841d99f58bda42a3e72
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0MyOjE5NkZCNToxRjZDMDc6MkE1REJFOjZBNjFBMDM0IiwidmlzaXRvcl9pZCI6Ijg5NjU2OTU2MDAyNzAwOTAyOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace37bcba1cf1d65aba923041227c9cc37f00b83bffeaa8addfc590057dbbdd809
hovercard-subject-tagpull_request:210908100
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/26676/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/dec0e05171aac94614e05d421b2a51e2843582a2abc7eba60ae111d743472d46/microsoft/TypeScript/pull/26676
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dec0e05171aac94614e05d421b2a51e2843582a2abc7eba60ae111d743472d46/microsoft/TypeScript/pull/26676
og:image:altWith this PR we properly check rest parameters of any subtype of any[], including user-defined array types and unions of tuple types. In cases where a rest parameter type is not exactly a T[] or a ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
None6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9
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
releaseac296ae7f21856f1f92adbad22f870b6fbb4b907
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/26676#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F26676
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F26676
Sign up https://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/26676
Reloadhttps://github.com/microsoft/TypeScript/pull/26676
Reloadhttps://github.com/microsoft/TypeScript/pull/26676
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 21 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
ahejlsberghttps://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
complexRestParameterTypeshttps://github.com/microsoft/TypeScript/tree/complexRestParameterTypes
Conversationhttps://github.com/microsoft/TypeScript/pull/26676
Commits8 (8)https://github.com/microsoft/TypeScript/pull/26676/commits
Checkshttps://github.com/microsoft/TypeScript/pull/26676/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/26676/files
Improve checking of complex rest parameter typeshttps://github.com/microsoft/TypeScript/pull/26676#top
ahejlsberghttps://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
complexRestParameterTypeshttps://github.com/microsoft/TypeScript/tree/complexRestParameterTypes
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Aug 25, 2018https://github.com/microsoft/TypeScript/pull/26676#issue-354021772
#26110https://github.com/microsoft/TypeScript/issues/26110
#26491https://github.com/microsoft/TypeScript/issues/26491
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
ahejlsberghttps://github.com/ahejlsberg
August 24, 2018 13:29https://github.com/microsoft/TypeScript/pull/26676#commits-pushed-9ef65ef
https://github.com/ahejlsberg
Use getSpreadArgumentType when relating to complex rest parameter typeshttps://github.com/microsoft/TypeScript/pull/26676/commits/9ef65ef3a4cf550d7231fb55a508f09fb7bfff1d
9ef65efhttps://github.com/microsoft/TypeScript/pull/26676/commits/9ef65ef3a4cf550d7231fb55a508f09fb7bfff1d
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/26676/commits/4e44b080200ec47ea5accaf51331a0ae73629740
4e44b08https://github.com/microsoft/TypeScript/pull/26676/commits/4e44b080200ec47ea5accaf51331a0ae73629740
https://github.com/ahejlsberg
Revise complex rest parameter handling in relations and inferencehttps://github.com/microsoft/TypeScript/pull/26676/commits/f5f61335ee655675f33e6b7238f9c160036d0eb6
f5f6133https://github.com/microsoft/TypeScript/pull/26676/commits/f5f61335ee655675f33e6b7238f9c160036d0eb6
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/26676/commits/0e1b99842c3a35e6e113253e2e3cfe9ce6ee60bc
0e1b998https://github.com/microsoft/TypeScript/pull/26676/commits/0e1b99842c3a35e6e113253e2e3cfe9ce6ee60bc
https://github.com/ahejlsberg
Add testshttps://github.com/microsoft/TypeScript/pull/26676/commits/676892ee56ef5804ea018ab217f1d4d1399bf4ef
676892ehttps://github.com/microsoft/TypeScript/pull/26676/commits/676892ee56ef5804ea018ab217f1d4d1399bf4ef
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/26676/commits/349bee92a34cf3550ae594213ad1eefabfb2f3df
349bee9https://github.com/microsoft/TypeScript/pull/26676/commits/349bee92a34cf3550ae594213ad1eefabfb2f3df
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
DanielRosenwasserhttps://github.com/DanielRosenwasser
RyanCavanaughhttps://github.com/RyanCavanaugh
sandersnhttps://github.com/sandersn
August 25, 2018 15:40https://github.com/microsoft/TypeScript/pull/26676#event-1809036331
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Aug 25, 2018 https://github.com/microsoft/TypeScript/pull/26676#ref-pullrequest-331436630
Tuples in rest parameters and spread expressions #24897 https://github.com/microsoft/TypeScript/pull/24897
https://github.com/mattmccutchen
mattmccutchenhttps://github.com/mattmccutchen
Aug 26, 2018https://github.com/microsoft/TypeScript/pull/26676#issuecomment-416060164
349bee9https://github.com/microsoft/TypeScript/commit/349bee92a34cf3550ae594213ad1eefabfb2f3df
#26110 (comment)https://github.com/microsoft/TypeScript/issues/26110#issuecomment-415199148
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Aug 26, 2018 https://github.com/microsoft/TypeScript/pull/26676#ref-issue-346436441
Spreads instantiated with array subtypes types exhibit bad behavior #26110 https://github.com/microsoft/TypeScript/issues/26110
https://github.com/mattmccutchen
mattmccutchenhttps://github.com/mattmccutchen
Aug 27, 2018https://github.com/microsoft/TypeScript/pull/26676#issuecomment-416085414
#26110 (comment)https://github.com/microsoft/TypeScript/issues/26110#issuecomment-416076790
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
Improved mapped type support for arrays and tuples #26063 https://github.com/microsoft/TypeScript/pull/26063
Mapped tuple types don't infer as arrays in generics #26163 https://github.com/microsoft/TypeScript/issues/26163
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Aug 28, 2018 https://github.com/microsoft/TypeScript/pull/26676#pullrequestreview-150202580
View reviewed changes https://github.com/microsoft/TypeScript/pull/26676/files/349bee92a34cf3550ae594213ad1eefabfb2f3df
sandersnhttps://github.com/sandersn
https://github.com/microsoft/TypeScript/pull/26676#pullrequestreview-150202580
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/26676/files/349bee92a34cf3550ae594213ad1eefabfb2f3df#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
sandersnhttps://github.com/sandersn
Aug 28, 2018https://github.com/microsoft/TypeScript/pull/26676#discussion_r213378606
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
ahejlsberghttps://github.com/ahejlsberg
Aug 29, 2018https://github.com/microsoft/TypeScript/pull/26676#discussion_r213686724
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/26676/files/349bee92a34cf3550ae594213ad1eefabfb2f3df#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
sandersnhttps://github.com/sandersn
Aug 28, 2018https://github.com/microsoft/TypeScript/pull/26676#discussion_r213404442
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
ahejlsberghttps://github.com/ahejlsberg
Aug 29, 2018https://github.com/microsoft/TypeScript/pull/26676#discussion_r213685508
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/26676/files/349bee92a34cf3550ae594213ad1eefabfb2f3df#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
sandersnhttps://github.com/sandersn
Aug 28, 2018https://github.com/microsoft/TypeScript/pull/26676#discussion_r213411629
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
ahejlsberghttps://github.com/ahejlsberg
Aug 29, 2018https://github.com/microsoft/TypeScript/pull/26676#discussion_r213687513
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
ahejlsberghttps://github.com/ahejlsberg
August 29, 2018 06:57https://github.com/microsoft/TypeScript/pull/26676#commits-pushed-9f4ae5f
https://github.com/ahejlsberg
Fix typohttps://github.com/microsoft/TypeScript/pull/26676/commits/9f4ae5f5eaa48c4ee52caaaae4193a0ad519b5bc
9f4ae5fhttps://github.com/microsoft/TypeScript/pull/26676/commits/9f4ae5f5eaa48c4ee52caaaae4193a0ad519b5bc
https://github.com/ahejlsberg
Merge branch 'master' into complexRestParameterTypeshttps://github.com/microsoft/TypeScript/pull/26676/commits/a2d2f5aee6cb44c05b0b4254446cf33881669542
a2d2f5ahttps://github.com/microsoft/TypeScript/pull/26676/commits/a2d2f5aee6cb44c05b0b4254446cf33881669542
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
d066e1ehttps://github.com/microsoft/TypeScript/commit/d066e1e9e3cd04335714c49546be0e98d4b3db8e
Aug 29, 2018https://github.com/microsoft/TypeScript/pull/26676#event-1816414783
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
August 29, 2018 18:39https://github.com/microsoft/TypeScript/pull/26676#event-1816414914
https://github.com/brendankenny
brendankennyhttps://github.com/brendankenny
Aug 30, 2018 https://github.com/microsoft/TypeScript/pull/26676#ref-issue-355378480
Performance issue checking IndexedAccess rest parameter that resolves to large union of tuples #26756 https://github.com/microsoft/TypeScript/issues/26756
https://github.com/jacobwgillespie
jacobwgillespiehttps://github.com/jacobwgillespie
Dec 31, 2018 https://github.com/microsoft/TypeScript/pull/26676#ref-pullrequest-394844551
React components cannot render undefined DefinitelyTyped/DefinitelyTyped#31782 https://github.com/DefinitelyTyped/DefinitelyTyped/pull/31782
https://github.com/ipotuzhnov
ipotuzhnovhttps://github.com/ipotuzhnov
May 16, 2019 https://github.com/microsoft/TypeScript/pull/26676#ref-issue-445131511
Extending empty tuple in generic functions causes compiler to infer arrays as tuples #31434 https://github.com/microsoft/TypeScript/issues/31434
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/26676#event-20415780569
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
ahejlsberghttps://github.com/ahejlsberg
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/26676#event-20415781598
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%2F26676
https://github.com/sandersn
sandersn https://github.com/sandersn
https://github.com/microsoft/TypeScript/pull/26676/files/349bee92a34cf3550ae594213ad1eefabfb2f3df
https://github.com/RyanCavanaugh
RyanCavanaugh https://github.com/RyanCavanaugh
https://github.com/DanielRosenwasser
DanielRosenwasser https://github.com/DanielRosenwasser
https://github.com/ahejlsberg
ahejlsberg https://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/26676
https://github.com/ahejlsberg
https://github.com/mattmccutchen
https://github.com/sandersn
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.