diff --git a/README.md b/README.md
index 551ded0..eba658b 100644
--- a/README.md
+++ b/README.md
@@ -144,6 +144,7 @@ The type declarations in this repository include the following specifications (g
- [Privacy Community Group](https://github.com/WebAudio):
- [Global Privacy Control](https://privacycg.github.io/gpc-spec/)
- [TC39](https://tc39.es):
+ - [Array.fromAsync](https://tc39.es/proposal-array-from-async/)
- [Array Grouping](https://tc39.es/proposal-array-grouping/)
- [ECMAScript Language Specification](https://tc39.es/ecma262/)
- [Import Attributes](https://tc39.es/proposal-import-attributes/)
diff --git a/index.d.ts b/index.d.ts
index 1b74c09..ceeda60 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -20,6 +20,7 @@
///
+///
///
///
///
diff --git a/package.json b/package.json
index 47346bd..a5ecbb7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "new-javascript",
- "version": "0.3.4",
+ "version": "0.3.5",
"description": "TypeScript type definitions for new JavaScript stuff that isn't yet in TypeScript's standard type definitions",
"main": "./index.d.ts",
"repository": {
diff --git a/tc39/array-from-async.d.ts b/tc39/array-from-async.d.ts
new file mode 100644
index 0000000..7ff3278
--- /dev/null
+++ b/tc39/array-from-async.d.ts
@@ -0,0 +1,8 @@
+
+// Array.fromAsync
+// Specification: https://tc39.es/proposal-array-from-async/
+// Repository: https://github.com/tc39/proposal-array-from-async
+
+interface ArrayConstructor {
+ fromAsync(asyncIterable: AsyncIterable): Promise;
+}
diff --git a/tc39/array-grouping.d.ts b/tc39/array-grouping.d.ts
index c7e8b57..6d8669d 100644
--- a/tc39/array-grouping.d.ts
+++ b/tc39/array-grouping.d.ts
@@ -3,8 +3,10 @@
// Specification: https://tc39.es/proposal-array-grouping/
// Repository: https://github.com/tc39/proposal-array-grouping
-interface Array {
- group(callback: (item: T, index?: number, array?: T[]) => string, thisArg?: any): Record;
- groupToMap(callback: (item: T, index?: number, array?: T[]) => string, thisArg?: any): Map;
+interface ObjectConstructor {
+ groupBy(array: T[], callback: (item: T, index?: number) => string): Record;
}
+interface MapConstructor {
+ groupBy(array: T[], callback: (item: T, index?: number) => K): Map;
+}
diff --git a/test.ts b/test.ts
index 31abf60..f884464 100644
--- a/test.ts
+++ b/test.ts
@@ -11,6 +11,12 @@
// /
// /
+Object.fromEntries
+
+Map.toString
+
+
+
CSS.lvmin
new DecompressionStream("deflate-raw");
diff --git a/w3c/permissions-registry.d.ts b/w3c/permissions-registry.d.ts
index 224f42b..89059a8 100644
--- a/w3c/permissions-registry.d.ts
+++ b/w3c/permissions-registry.d.ts
@@ -5,17 +5,23 @@
declare namespace NewJavaScript {
type PermissionName = (
- // in lib.dom.d.ts: "geolocation", "notifications", "push", "persistent-storage", "screen-wake-lock", "xr-spatial-tracking"
+ // in lib.dom.d.ts:
+ | "geolocation"
+ | "notifications"
+ | "push"
+ | "persistent-storage"
+ | "screen-wake-lock"
+ | "xr-spatial-tracking"
- // https://w3c.github.io/permissions-registry/#registry-table-of-standardized-permissions
+ // https://w3c.github.io/permissions-registry/#registry-table-of-standardized-permissions:
| "web-share"
- // https://w3c.github.io/permissions-registry/#registry-table-of-provisional-permissions
+ // https://w3c.github.io/permissions-registry/#registry-table-of-provisional-permissions:
| "accelerometer"
| "window-management"
| "local-fonts"
- // https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/modules/permissions/permission_descriptor.idl
+ // https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/modules/permissions/permission_descriptor.idl:
| "midi"
| "camera"
| "microphone"
diff --git a/worker.d.ts b/worker.d.ts
index 26c580c..c3fc12c 100644
--- a/worker.d.ts
+++ b/worker.d.ts
@@ -6,6 +6,7 @@
///
+///
///
///
///
diff --git a/worklet/worklet-global.d.ts b/worklet/worklet-global.d.ts
index 6dcc5d3..893898e 100644
--- a/worklet/worklet-global.d.ts
+++ b/worklet/worklet-global.d.ts
@@ -2,6 +2,7 @@
// Worklets
// https://html.spec.whatwg.org/multipage/worklets.html
+///
///
///
///