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

Open Beginner friendly
#63,701 0 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

Committed Domain: lib.d.ts Suggestion

The "await dictionary" proposal is at stage 3 and brings the following methods.

  • Promise.allKeyed
  • Promise.allSettledKeyed

We should add support in TypeScript 7.1.

Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 15h
Merged PRs (30d)
106

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.

More from microsoft/TypeScript

All issues in microsoft/TypeScript

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.