microsoft / microsoft/TypeScript
Support `Promise.allKeyed`/`Promise.allSettledKeyed` methods in `esnext` (eventually `es2027`)
Open
Beginner friendly
Committed
Domain: lib.d.ts
Suggestion
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
The ["await dictionary" proposal](https://github.com/tc39/proposal-await-dictionary) is at stage 3 and brings the following methods.
* `Promise.allKeyed`
* `Promise.allSettledKeyed`
We should add support in TypeScript 7.1.
Contributor guide
Research direction
Start by reading the linked TC39 await dictionary proposal and the existing TypeScript ESNext Promise library declarations. Identify how standard-library methods are represented for the esnext target, then add both keyed methods for TypeScript 7.1 and verify that their types are exposed. Done means both methods are available through the esnext library without type errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100