microsoft / microsoft/TypeScript

Support recent `Iterator`/`Iterator.prototype` methods in `esnext` (eventually `es2027`)

Open
#63,700 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Committed Domain: lib.d.ts Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

The following proposals are at a mix of stage 3 and stage 4 in TC39's standardization process. We should add them in TypeScript 7.1.

* [`Iterator.zip` and `Iterator.zipKeyed`](https://github.com/tc39/proposal-joint-iteration)
* [`Iterator.prototype.chunks`](https://github.com/tc39/proposal-iterator-chunking)
* [`Iterator.prototype.join`](https://github.com/tc39/proposal-iterator-join)
* [`Iterator.prototype.includes`](https://github.com/tc39/proposal-iterator-includes)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the four linked TC39 proposals and how TypeScript 7.1 exposes the esnext library declarations. Add the listed Iterator and Iterator.prototype methods to the appropriate esnext surface, then verify that the declarations match the proposal APIs and are ready for eventual es2027 inclusion.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.