Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/web/docs/features/proposals/await-dictionary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Await dictionary
[Specification](https://tc39.es/proposal-await-dictionary/)\
[Proposal repo](https://github.com/tc39/proposal-await-dictionary)

## Modules
[`esnext.promise.all-keyed`](https://github.com/zloirock/core-js/blob/v4/packages/core-js/modules/esnext.promise.all-keyed.js)

## Built-ins signatures
```ts
class Promise {
allKeyed<T extends Record<string, unknown>>(
obj: T
): Promise<{ [K in keyof T]: Awaited<T[K]> }>;
}
```

## [Entry points]({docs-version}/docs/usage#h-entry-points)
```ts
core-js/proposals/promise-all-keyed
core-js(-pure)/full/promise/all-keyed
```

## Examples
```js
await Promise.allKeyed({
a: Promise.resolve(1),
b: Promise.resolve(2),
c: 3,
}); // => { a: 1, b: 2, c: 3 }
```
4 changes: 4 additions & 0 deletions docs/web/docs/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@
"title": "Array deduplication",
"url": "{docs-version}/docs/features/proposals/array-deduplication"
},
{
"title": "Await dictionary",
"url": "{docs-version}/docs/features/proposals/await-dictionary"
},
{
"title": "DataView get / set Uint8Clamped methods",
"url": "{docs-version}/docs/features/proposals/dataview-get-set-uint8clamped"
Expand Down