microsoft / microsoft/TypeScript

Support `Promise.allKeyed`/`Promise.allSettledKeyed` methods in `esnext` (eventually `es2027`)

Open Beginner friendly
#63,701 0 comments 10 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.