typescript 5.5.0-dev.20240319 → 5.5.0-dev.20240320
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/lib.esnext.array.d.ts +35 -0
- package/lib/lib.esnext.d.ts +1 -0
- package/lib/tsc.js +6 -9
- package/lib/typescript.js +6 -9
- package/package.json +2 -2
|
@@ -0,0 +1,35 @@
|
|
|
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 ArrayConstructor {
|
|
20
|
+
/**
|
|
21
|
+
* Creates an array from an async iterator or iterable object.
|
|
22
|
+
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
|
|
23
|
+
*/
|
|
24
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Creates an array from an async iterator or iterable object.
|
|
28
|
+
*
|
|
29
|
+
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
|
|
30
|
+
* @param mapfn A mapping function to call on every element of itarableOrArrayLike.
|
|
31
|
+
* Each return value is awaited before being added to result array.
|
|
32
|
+
* @param thisArg Value of 'this' used when executing mapfn.
|
|
33
|
+
*/
|
|
34
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
35
|
+
}
|
package/lib/lib.esnext.d.ts
CHANGED
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.5";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20240320`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -11850,6 +11850,9 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
11850
11850
|
es2015: [
|
|
11851
11851
|
"from",
|
|
11852
11852
|
"of"
|
|
11853
|
+
],
|
|
11854
|
+
esnext: [
|
|
11855
|
+
"fromAsync"
|
|
11853
11856
|
]
|
|
11854
11857
|
})),
|
|
11855
11858
|
ObjectConstructor: new Map(Object.entries({
|
|
@@ -33758,6 +33761,7 @@ var libEntries = [
|
|
|
33758
33761
|
["esnext.weakref", "lib.es2021.weakref.d.ts"],
|
|
33759
33762
|
["esnext.decorators", "lib.esnext.decorators.d.ts"],
|
|
33760
33763
|
["esnext.object", "lib.esnext.object.d.ts"],
|
|
33764
|
+
["esnext.array", "lib.esnext.array.d.ts"],
|
|
33761
33765
|
["esnext.regexp", "lib.esnext.regexp.d.ts"],
|
|
33762
33766
|
["decorators", "lib.decorators.d.ts"],
|
|
33763
33767
|
["decorators.legacy", "lib.decorators.legacy.d.ts"]
|
|
@@ -47141,13 +47145,6 @@ function createTypeChecker(host) {
|
|
|
47141
47145
|
});
|
|
47142
47146
|
}
|
|
47143
47147
|
function getSymbolIfSameReference(s1, s2) {
|
|
47144
|
-
var _a, _b;
|
|
47145
|
-
if (s1.flags & 524288 /* TypeAlias */ && ((_a = s2.declarations) == null ? void 0 : _a.find(isTypeAlias))) {
|
|
47146
|
-
s2 = getDeclaredTypeOfTypeAlias(s2).aliasSymbol || s2;
|
|
47147
|
-
}
|
|
47148
|
-
if (s2.flags & 524288 /* TypeAlias */ && ((_b = s1.declarations) == null ? void 0 : _b.find(isTypeAlias))) {
|
|
47149
|
-
s1 = getDeclaredTypeOfTypeAlias(s1).aliasSymbol || s1;
|
|
47150
|
-
}
|
|
47151
47148
|
if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {
|
|
47152
47149
|
return s1;
|
|
47153
47150
|
}
|
|
@@ -80558,7 +80555,7 @@ function createTypeChecker(host) {
|
|
|
80558
80555
|
error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
80559
80556
|
} else {
|
|
80560
80557
|
const text = getTextOfPropertyName(member.name);
|
|
80561
|
-
if (isNumericLiteralName(text)) {
|
|
80558
|
+
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
|
|
80562
80559
|
error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
|
|
80563
80560
|
}
|
|
80564
80561
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -2326,7 +2326,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2326
2326
|
|
|
2327
2327
|
// src/compiler/corePublic.ts
|
|
2328
2328
|
var versionMajorMinor = "5.5";
|
|
2329
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2329
|
+
var version = `${versionMajorMinor}.0-dev.20240320`;
|
|
2330
2330
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2331
2331
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2332
2332
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -15657,6 +15657,9 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
15657
15657
|
es2015: [
|
|
15658
15658
|
"from",
|
|
15659
15659
|
"of"
|
|
15660
|
+
],
|
|
15661
|
+
esnext: [
|
|
15662
|
+
"fromAsync"
|
|
15660
15663
|
]
|
|
15661
15664
|
})),
|
|
15662
15665
|
ObjectConstructor: new Map(Object.entries({
|
|
@@ -38177,6 +38180,7 @@ var libEntries = [
|
|
|
38177
38180
|
["esnext.weakref", "lib.es2021.weakref.d.ts"],
|
|
38178
38181
|
["esnext.decorators", "lib.esnext.decorators.d.ts"],
|
|
38179
38182
|
["esnext.object", "lib.esnext.object.d.ts"],
|
|
38183
|
+
["esnext.array", "lib.esnext.array.d.ts"],
|
|
38180
38184
|
["esnext.regexp", "lib.esnext.regexp.d.ts"],
|
|
38181
38185
|
["decorators", "lib.decorators.d.ts"],
|
|
38182
38186
|
["decorators.legacy", "lib.decorators.legacy.d.ts"]
|
|
@@ -51869,13 +51873,6 @@ function createTypeChecker(host) {
|
|
|
51869
51873
|
});
|
|
51870
51874
|
}
|
|
51871
51875
|
function getSymbolIfSameReference(s1, s2) {
|
|
51872
|
-
var _a, _b;
|
|
51873
|
-
if (s1.flags & 524288 /* TypeAlias */ && ((_a = s2.declarations) == null ? void 0 : _a.find(isTypeAlias))) {
|
|
51874
|
-
s2 = getDeclaredTypeOfTypeAlias(s2).aliasSymbol || s2;
|
|
51875
|
-
}
|
|
51876
|
-
if (s2.flags & 524288 /* TypeAlias */ && ((_b = s1.declarations) == null ? void 0 : _b.find(isTypeAlias))) {
|
|
51877
|
-
s1 = getDeclaredTypeOfTypeAlias(s1).aliasSymbol || s1;
|
|
51878
|
-
}
|
|
51879
51876
|
if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {
|
|
51880
51877
|
return s1;
|
|
51881
51878
|
}
|
|
@@ -85286,7 +85283,7 @@ function createTypeChecker(host) {
|
|
|
85286
85283
|
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
85287
85284
|
} else {
|
|
85288
85285
|
const text = getTextOfPropertyName(member.name);
|
|
85289
|
-
if (isNumericLiteralName(text)) {
|
|
85286
|
+
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
|
|
85290
85287
|
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
|
|
85291
85288
|
}
|
|
85292
85289
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.5.0-dev.
|
|
5
|
+
"version": "5.5.0-dev.20240320",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"node": "20.1.0",
|
|
113
113
|
"npm": "8.19.4"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "309fd3db81955ef7a4dd55a80e333b2b767717a7"
|
|
116
116
|
}
|