microsoft / microsoft/TypeScript
Support `Promise.allKeyed`/`Promise.allSettledKeyed` methods in `esnext` (eventually `es2027`)
未关闭
适合新手
还没有人认领这个 Issue。
Committed
Domain: lib.d.ts
Suggestion
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 132
描述
The "await dictionary" proposal is at stage 3 and brings the following methods.
Promise.allKeyedPromise.allSettledKeyed
We should add support in TypeScript 7.1.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先阅读链接的 TC39 await dictionary 提案以及现有的 TypeScript ESNext Promise 库声明。确定针对 esnext 目标如何表示标准库方法,然后为 TypeScript 7.1 添加这两个 keyed methods,并验证它们的类型已公开。完成的标准是:两个方法都能通过 esnext 库使用,且没有类型错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- compilers
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100