typescript 5.7.0-dev.20240927 → 5.7.0-dev.20240928
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_tsc.js +580 -223
- package/lib/lib.dom.d.ts +1115 -219
- package/lib/lib.es2016.intl.d.ts +1 -1
- package/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/lib/lib.es2017.d.ts +3 -2
- package/lib/lib.es2017.sharedmemory.d.ts +2 -2
- package/lib/lib.es2020.bigint.d.ts +1 -1
- package/lib/lib.es2020.intl.d.ts +36 -36
- package/lib/lib.es2020.sharedmemory.d.ts +2 -0
- package/lib/lib.es2020.string.d.ts +2 -0
- package/lib/lib.es2021.intl.d.ts +17 -17
- package/lib/lib.es2021.weakref.d.ts +2 -0
- package/lib/lib.es2022.d.ts +1 -2
- package/lib/lib.es2022.error.d.ts +2 -0
- package/lib/lib.es2022.intl.d.ts +9 -9
- package/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/lib/lib.es2024.collection.d.ts +29 -0
- package/lib/lib.es2024.d.ts +26 -0
- package/lib/lib.es2024.full.d.ts +24 -0
- package/lib/{lib.es2022.sharedmemory.d.ts → lib.es2024.sharedmemory.d.ts} +29 -0
- package/lib/lib.es5.d.ts +1 -1
- package/lib/lib.esnext.collection.d.ts +1 -11
- package/lib/lib.esnext.d.ts +1 -5
- package/lib/lib.webworker.d.ts +311 -34
- package/lib/typescript.d.ts +7 -1
- package/lib/typescript.js +603 -230
- package/package.json +2 -2
- /package/lib/{lib.esnext.object.d.ts → lib.es2024.object.d.ts} +0 -0
- /package/lib/{lib.esnext.promise.d.ts → lib.es2024.promise.d.ts} +0 -0
- /package/lib/{lib.esnext.regexp.d.ts → lib.es2024.regexp.d.ts} +0 -0
- /package/lib/{lib.esnext.string.d.ts → lib.es2024.string.d.ts} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/// <reference no-default-lib="true"/>
|
|
18
|
+
|
|
19
|
+
interface MapConstructor {
|
|
20
|
+
/**
|
|
21
|
+
* Groups members of an iterable according to the return value of the passed callback.
|
|
22
|
+
* @param items An iterable.
|
|
23
|
+
* @param keySelector A callback which will be invoked for each item in items.
|
|
24
|
+
*/
|
|
25
|
+
groupBy<K, T>(
|
|
26
|
+
items: Iterable<T>,
|
|
27
|
+
keySelector: (item: T, index: number) => K,
|
|
28
|
+
): Map<K, T[]>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/// <reference no-default-lib="true"/>
|
|
18
|
+
|
|
19
|
+
/// <reference lib="es2023" />
|
|
20
|
+
/// <reference lib="es2024.arraybuffer" />
|
|
21
|
+
/// <reference lib="es2024.collection" />
|
|
22
|
+
/// <reference lib="es2024.object" />
|
|
23
|
+
/// <reference lib="es2024.promise" />
|
|
24
|
+
/// <reference lib="es2024.regexp" />
|
|
25
|
+
/// <reference lib="es2024.sharedmemory" />
|
|
26
|
+
/// <reference lib="es2024.string" />
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/// <reference no-default-lib="true"/>
|
|
18
|
+
|
|
19
|
+
/// <reference lib="es2024" />
|
|
20
|
+
/// <reference lib="dom" />
|
|
21
|
+
/// <reference lib="webworker.importscripts" />
|
|
22
|
+
/// <reference lib="scripthost" />
|
|
23
|
+
/// <reference lib="dom.iterable" />
|
|
24
|
+
/// <reference lib="dom.asynciterable" />
|
|
@@ -16,6 +16,8 @@ and limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
|
+
/// <reference lib="es2020.bigint" />
|
|
20
|
+
|
|
19
21
|
interface Atomics {
|
|
20
22
|
/**
|
|
21
23
|
* A non-blocking, asynchronous version of wait which is usable on the main thread.
|
|
@@ -37,3 +39,30 @@ interface Atomics {
|
|
|
37
39
|
*/
|
|
38
40
|
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };
|
|
39
41
|
}
|
|
42
|
+
|
|
43
|
+
interface SharedArrayBuffer {
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if this SharedArrayBuffer can be grown.
|
|
46
|
+
*
|
|
47
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/growable)
|
|
48
|
+
*/
|
|
49
|
+
get growable(): number;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.
|
|
53
|
+
*
|
|
54
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/maxByteLength)
|
|
55
|
+
*/
|
|
56
|
+
get maxByteLength(): number;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Grows the SharedArrayBuffer to the specified size (in bytes).
|
|
60
|
+
*
|
|
61
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/grow)
|
|
62
|
+
*/
|
|
63
|
+
grow(newByteLength?: number): void;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface SharedArrayBufferConstructor {
|
|
67
|
+
new (byteLength: number, options?: { maxByteLength?: number; }): SharedArrayBuffer;
|
|
68
|
+
}
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -16,17 +16,7 @@ and limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Groups members of an iterable according to the return value of the passed callback.
|
|
22
|
-
* @param items An iterable.
|
|
23
|
-
* @param keySelector A callback which will be invoked for each item in items.
|
|
24
|
-
*/
|
|
25
|
-
groupBy<K, T>(
|
|
26
|
-
items: Iterable<T>,
|
|
27
|
-
keySelector: (item: T, index: number) => K,
|
|
28
|
-
): Map<K, T[]>;
|
|
29
|
-
}
|
|
19
|
+
/// <reference lib="es2024.collection" />
|
|
30
20
|
|
|
31
21
|
interface ReadonlySetLike<T> {
|
|
32
22
|
/**
|
package/lib/lib.esnext.d.ts
CHANGED
|
@@ -16,14 +16,10 @@ and limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
|
-
/// <reference lib="
|
|
19
|
+
/// <reference lib="es2024" />
|
|
20
20
|
/// <reference lib="esnext.intl" />
|
|
21
21
|
/// <reference lib="esnext.decorators" />
|
|
22
22
|
/// <reference lib="esnext.disposable" />
|
|
23
|
-
/// <reference lib="esnext.promise" />
|
|
24
|
-
/// <reference lib="esnext.object" />
|
|
25
23
|
/// <reference lib="esnext.collection" />
|
|
26
24
|
/// <reference lib="esnext.array" />
|
|
27
|
-
/// <reference lib="esnext.regexp" />
|
|
28
|
-
/// <reference lib="esnext.string" />
|
|
29
25
|
/// <reference lib="esnext.iterator" />
|