| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:2f265584-7769-b2a2-0679-c5da5e0f9d93 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CCC0:15BE1E:102CE:16530:6AFBF659 |
| html-safe-nonce | 99b0f4dbc2ca4cced5e71ca8f7590f30fb4f31e6703b7946b75f4679c6282d08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0MwOjE1QkUxRToxMDJDRToxNjUzMDo2QUZCRjY1OSIsInZpc2l0b3JfaWQiOiI2MDk1NTcyMjExMzk1NzIwNzkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 198012f515b2fd30e9e0fb4eb3a749d761f7bd42c0dde6275def0300ba31c399 |
| hovercard-subject-tag | pull_request:31981663 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/2498/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/e278bf7e69e0356ad20e0256a9b1ea15e8e89218fe89026442e88993ec7966a2/microsoft/TypeScript/pull/2498 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e278bf7e69e0356ad20e0256a9b1ea15e8e89218fe89026442e88993ec7966a2/microsoft/TypeScript/pull/2498 |
| og:image:alt | This adds support for a few things:
Spreading an iterator into an array
var array = [0, 1, ...new NumberIterator];
Spreading an iterator into a call
function foo(...nums: number[]) { }
foo(...n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JsonFreeman |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/microsoft/TypeScript/pull/2498#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F2498 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F2498 |
| 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 |
| Reload | https://github.com/microsoft/TypeScript/pull/2498 |
| Reload | https://github.com/microsoft/TypeScript/pull/2498 |
| Reload | https://github.com/microsoft/TypeScript/pull/2498 |
| microsoft | https://github.com/microsoft |
| TypeScript | https://github.com/microsoft/TypeScript |
| Code | https://github.com/microsoft/TypeScript |
| Issues5k (5k) | https://github.com/microsoft/TypeScript/issues |
| Pull requests335 (335) | https://github.com/microsoft/TypeScript/pulls |
| Actions | https://github.com/microsoft/TypeScript/actions |
| Projects | https://github.com/microsoft/TypeScript/projects |
| Wiki | https://github.com/microsoft/TypeScript/wiki |
| Security and quality | https://github.com/microsoft/TypeScript/security |
| Insights | https://github.com/microsoft/TypeScript/pulse |
| https://github.com/microsoft/TypeScript |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| master | https://github.com/microsoft/TypeScript/tree/master |
| iteratorSpreadDestructure | https://github.com/microsoft/TypeScript/tree/iteratorSpreadDestructure |
| Conversation | https://github.com/microsoft/TypeScript/pull/2498 |
| Commits20 (20) | https://github.com/microsoft/TypeScript/pull/2498/commits |
| Checks | https://github.com/microsoft/TypeScript/pull/2498/checks |
| Files changed | https://github.com/microsoft/TypeScript/pull/2498/files |
| Support spreading and destructuring of iterators in ES6 | https://github.com/microsoft/TypeScript/pull/2498#top |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| master | https://github.com/microsoft/TypeScript/tree/master |
| iteratorSpreadDestructure | https://github.com/microsoft/TypeScript/tree/iteratorSpreadDestructure |
|
| https://github.com/JsonFreeman |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| Mar 26, 2015 | https://github.com/microsoft/TypeScript/pull/2498#issue-64410150 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/2498 |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| March 25, 2015 18:03 | https://github.com/microsoft/TypeScript/pull/2498#commits-pushed-abe4076 |
|
| https://github.com/JsonFreeman |
| Change error message to be more general | https://github.com/microsoft/TypeScript/pull/2498/commits/abe4076417a9232377498a6e113b70ac7c9d2105 |
| abe4076 | https://github.com/microsoft/TypeScript/pull/2498/commits/abe4076417a9232377498a6e113b70ac7c9d2105 |
|
| https://github.com/JsonFreeman |
| Add spread to typeWriter | https://github.com/microsoft/TypeScript/pull/2498/commits/3497e27d561214174b9b686b36dae71b44cabad9 |
| 3497e27 | https://github.com/microsoft/TypeScript/pull/2498/commits/3497e27d561214174b9b686b36dae71b44cabad9 |
|
| https://github.com/JsonFreeman |
| Refactor checkSpreadElementExpression to get the element type internally | https://github.com/microsoft/TypeScript/pull/2498/commits/b7f2990305d72c2084ad3b6ee67f3b9da878e636 |
|
| https://github.com/microsoft/TypeScript/commit/b7f2990305d72c2084ad3b6ee67f3b9da878e636#comments |
| b7f2990 | https://github.com/microsoft/TypeScript/pull/2498/commits/b7f2990305d72c2084ad3b6ee67f3b9da878e636 |
|
| https://github.com/JsonFreeman |
| Support iterators in spread element | https://github.com/microsoft/TypeScript/pull/2498/commits/2288946afc0dded99f92ef19bf5e3c5deaea1f51 |
| 2288946 | https://github.com/microsoft/TypeScript/pull/2498/commits/2288946afc0dded99f92ef19bf5e3c5deaea1f51 |
|
| https://github.com/JsonFreeman |
| Add tests for iterator spread in an array literal | https://github.com/microsoft/TypeScript/pull/2498/commits/376574d1be89195a34c5b04ce33ecc41282919f2 |
| 376574d | https://github.com/microsoft/TypeScript/pull/2498/commits/376574d1be89195a34c5b04ce33ecc41282919f2 |
|
| https://github.com/JsonFreeman |
| Add tests for iterator spread in call | https://github.com/microsoft/TypeScript/pull/2498/commits/4a0af76064ae039efd99b47133eb35a21c1cc43f |
|
| https://github.com/microsoft/TypeScript/commit/4a0af76064ae039efd99b47133eb35a21c1cc43f#comments |
| 4a0af76 | https://github.com/microsoft/TypeScript/pull/2498/commits/4a0af76064ae039efd99b47133eb35a21c1cc43f |
|
| https://github.com/JsonFreeman |
| Add createIterableType | https://github.com/microsoft/TypeScript/pull/2498/commits/8c2cd2610317dcc0f22f3f57c60c959a2cb53e41 |
| 8c2cd26 | https://github.com/microsoft/TypeScript/pull/2498/commits/8c2cd2610317dcc0f22f3f57c60c959a2cb53e41 |
|
| https://github.com/JsonFreeman |
| getTypeFromArrayBindingPattern returns an iterable in ES6 | https://github.com/microsoft/TypeScript/pull/2498/commits/42ed6aab89ff1bd739f11ba6f0ab1bbfb57e38fe |
|
| https://github.com/microsoft/TypeScript/commit/42ed6aab89ff1bd739f11ba6f0ab1bbfb57e38fe#comments |
| 42ed6aa | https://github.com/microsoft/TypeScript/pull/2498/commits/42ed6aab89ff1bd739f11ba6f0ab1bbfb57e38fe |
|
| https://github.com/JsonFreeman |
| Refactor iterable or array checks into checkIteratedTypeOrElementType | https://github.com/microsoft/TypeScript/pull/2498/commits/806c9ce25b1a78ac442b5f6de169b4b02f7a15b2 |
| 806c9ce | https://github.com/microsoft/TypeScript/pull/2498/commits/806c9ce25b1a78ac442b5f6de169b4b02f7a15b2 |
|
| https://github.com/JsonFreeman |
| Type of an array binding element is the iterated type of its parent i… | https://github.com/microsoft/TypeScript/pull/2498/commits/06d6717859cb065492bfd65552f939ac9f3ed6e7 |
|
| https://github.com/microsoft/TypeScript/commit/06d6717859cb065492bfd65552f939ac9f3ed6e7#comments |
| 06d6717 | https://github.com/microsoft/TypeScript/pull/2498/commits/06d6717859cb065492bfd65552f939ac9f3ed6e7 |
|
| https://github.com/JsonFreeman |
| Use iterated type in checkArrayLiteralAssignment | https://github.com/microsoft/TypeScript/pull/2498/commits/17d201f92225370bf1a4521c1728bed1beb3f98a |
| 17d201f | https://github.com/microsoft/TypeScript/pull/2498/commits/17d201f92225370bf1a4521c1728bed1beb3f98a |
|
| https://github.com/JsonFreeman |
| Wrap elementType in createArrayType for rest element in checkArrayLit… | https://github.com/microsoft/TypeScript/pull/2498/commits/6b2d5ceb7c40533cdb82617d38e78c9d0cd866a9 |
| 6b2d5ce | https://github.com/microsoft/TypeScript/pull/2498/commits/6b2d5ceb7c40533cdb82617d38e78c9d0cd866a9 |
|
| https://github.com/JsonFreeman |
| Adjust getTypeFromArrayBindingPattern to return an array if inside a … | https://github.com/microsoft/TypeScript/pull/2498/commits/a477b63420407985b2df252604946d600cbdc4c3 |
|
| https://github.com/microsoft/TypeScript/commit/a477b63420407985b2df252604946d600cbdc4c3#comments |
| a477b63 | https://github.com/microsoft/TypeScript/pull/2498/commits/a477b63420407985b2df252604946d600cbdc4c3 |
|
| https://github.com/JsonFreeman |
| Add tests for array destructuring of iterables | https://github.com/microsoft/TypeScript/pull/2498/commits/e1f2fbff63cb6835dd557e4aa20b092145ce005c |
| e1f2fbf | https://github.com/microsoft/TypeScript/pull/2498/commits/e1f2fbff63cb6835dd557e4aa20b092145ce005c |
| https://github.com/msftclas |
| Microsoft Contribution License Agreements (msftclas) | https://github.com/msftclas |
|
cla-not-required
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required |
| Mar 26, 2015 | https://github.com/microsoft/TypeScript/pull/2498#event-265355107 |
| https://github.com/JsonFreeman |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
|
Mar 26, 2015
| https://github.com/microsoft/TypeScript/pull/2498#ref-issue-56315255 |
|
Iterators (ES6)
#1900
| https://github.com/microsoft/TypeScript/issues/1900 |
|
| https://github.com/JsonFreeman |
| Optimize direct Iterable reference in getIteratedType | https://github.com/microsoft/TypeScript/pull/2498/commits/197a42a692d818d683451820c8896c25320034b1 |
| 197a42a | https://github.com/microsoft/TypeScript/pull/2498/commits/197a42a692d818d683451820c8896c25320034b1 |
| https://github.com/JsonFreeman |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
|
cla-not-required
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required |
| Mar 26, 2015 | https://github.com/microsoft/TypeScript/pull/2498#event-265372640 |
| CyrusNajmabadi | https://github.com/CyrusNajmabadi |
|
Mar 26, 2015
| https://github.com/microsoft/TypeScript/pull/2498#discussion-diff-27182983 |
| View reviewed changes
| https://github.com/microsoft/TypeScript/pull/2498/files/197a42a692d818d683451820c8896c25320034b1#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8 |
| src/compiler/checker.ts | https://github.com/microsoft/TypeScript/pull/2498/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8 |
| Cyrus Najmabadi (CyrusNajmabadi) | https://github.com/CyrusNajmabadi |
| Mar 26, 2015 | https://github.com/microsoft/TypeScript/pull/2498#discussion_r27182983 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/2498 |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| Mar 26, 2015 | https://github.com/microsoft/TypeScript/pull/2498#discussion_r27183237 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/2498 |
| https://github.com/JsonFreeman |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| Mar 26, 2015 | https://github.com/microsoft/TypeScript/pull/2498#issuecomment-86291726 |
| #1900 (comment) | https://github.com/microsoft/TypeScript/issues/1900#issuecomment-76583563 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/2498 |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| March 25, 2015 19:06 | https://github.com/microsoft/TypeScript/pull/2498#commits-pushed-17719e8 |
|
| https://github.com/JsonFreeman |
| Fix comment to be more accurate | https://github.com/microsoft/TypeScript/pull/2498/commits/17719e85ff1d4f05e6df257c9a3f787c055c8ef9 |
| 17719e8 | https://github.com/microsoft/TypeScript/pull/2498/commits/17719e85ff1d4f05e6df257c9a3f787c055c8ef9 |
|
| https://github.com/JsonFreeman |
| Merge branch 'master' into iteratorSpreadDestructure | https://github.com/microsoft/TypeScript/pull/2498/commits/de8de7ac969fe7f60871efdbdc8f0e728b717223 |
| de8de7a | https://github.com/microsoft/TypeScript/pull/2498/commits/de8de7ac969fe7f60871efdbdc8f0e728b717223 |
|
| https://github.com/JsonFreeman |
| Add clarifying comment about checkExpressionCached | https://github.com/microsoft/TypeScript/pull/2498/commits/903c1d8dd8b1768f843be86d6fdf2b6da1a036df |
| 903c1d8 | https://github.com/microsoft/TypeScript/pull/2498/commits/903c1d8dd8b1768f843be86d6fdf2b6da1a036df |
| https://github.com/yuit |
| Yui (yuit) | https://github.com/yuit |
| Apr 8, 2015 | https://github.com/microsoft/TypeScript/pull/2498#issuecomment-91003147 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/2498 |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| April 8, 2015 16:14 | https://github.com/microsoft/TypeScript/pull/2498#commits-pushed-d459c59 |
|
| https://github.com/JsonFreeman |
| Merge branch 'master' of | https://github.com/microsoft/TypeScript/pull/2498/commits/d459c590281bc0a64cc08b0f2a19ff07146ce5fe |
| https://github.com/Microsoft/TypeScript | https://github.com/Microsoft/TypeScript |
| into… | https://github.com/microsoft/TypeScript/pull/2498/commits/d459c590281bc0a64cc08b0f2a19ff07146ce5fe |
| d459c59 | https://github.com/microsoft/TypeScript/pull/2498/commits/d459c590281bc0a64cc08b0f2a19ff07146ce5fe |
|
| https://github.com/JsonFreeman |
| Update baselines for preserving newlines | https://github.com/microsoft/TypeScript/pull/2498/commits/846c2252970b9f59d9c1ea8af53549f001ebd751 |
| 846c225 | https://github.com/microsoft/TypeScript/pull/2498/commits/846c2252970b9f59d9c1ea8af53549f001ebd751 |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
|
Apr 8, 2015
| https://github.com/microsoft/TypeScript/pull/2498#ref-commit-21a5611 |
|
| https://github.com/JsonFreeman |
| Merge pull request | https://github.com/microsoft/TypeScript/commit/21a561183969db1273daec95651f99132413904e |
| #2498 | https://github.com/microsoft/TypeScript/pull/2498 |
| from Microsoft/iteratorSpreadDestructure | https://github.com/microsoft/TypeScript/commit/21a561183969db1273daec95651f99132413904e |
| 21a5611 | https://github.com/microsoft/TypeScript/commit/21a561183969db1273daec95651f99132413904e |
| https://github.com/JsonFreeman |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| 21a5611 | https://github.com/microsoft/TypeScript/commit/21a561183969db1273daec95651f99132413904e |
| Apr 8, 2015 | https://github.com/microsoft/TypeScript/pull/2498#event-276743814 |
| https://github.com/JsonFreeman |
| Jason Freeman (JsonFreeman) | https://github.com/JsonFreeman |
| April 8, 2015 23:58 | https://github.com/microsoft/TypeScript/pull/2498#event-276743845 |
| https://github.com/microsoft |
| Microsoft (microsoft) | https://github.com/microsoft |
| Jun 18, 2018 | https://github.com/microsoft/TypeScript/pull/2498#event-1686927308 |
| https://github.co/hiddenchars |
| https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F2498 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/2498 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/2498 |
|
| https://github.com/JsonFreeman |
|
| https://github.com/yuit |
|
| https://github.com/CyrusNajmabadi |
|
| https://github.com/msftclas |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |