typescript 5.7.0-dev.20240902 → 5.7.0-dev.20240904

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.
@@ -31,5 +31,5 @@ interface ArrayConstructor {
31
31
  * Each return value is awaited before being added to result array.
32
32
  * @param thisArg Value of 'this' used when executing mapfn.
33
33
  */
34
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
34
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
35
35
  }
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.7";
21
- var version = `${versionMajorMinor}.0-dev.20240902`;
21
+ var version = `${versionMajorMinor}.0-dev.20240904`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -79554,7 +79554,7 @@ function createTypeChecker(host) {
79554
79554
  const modifiers = getTypeParameterModifiers(typeParameter) & (8192 /* In */ | 16384 /* Out */);
79555
79555
  if (modifiers) {
79556
79556
  const symbol = getSymbolOfDeclaration(node.parent);
79557
- if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */))) {
79557
+ if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) {
79558
79558
  error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
79559
79559
  } else if (modifiers === 8192 /* In */ || modifiers === 16384 /* Out */) {
79560
79560
  (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) });
package/lib/typescript.js CHANGED
@@ -2265,7 +2265,7 @@ module.exports = __toCommonJS(typescript_exports);
2265
2265
 
2266
2266
  // src/compiler/corePublic.ts
2267
2267
  var versionMajorMinor = "5.7";
2268
- var version = `${versionMajorMinor}.0-dev.20240902`;
2268
+ var version = `${versionMajorMinor}.0-dev.20240904`;
2269
2269
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2270
2270
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2271
2271
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -84180,7 +84180,7 @@ function createTypeChecker(host) {
84180
84180
  const modifiers = getTypeParameterModifiers(typeParameter) & (8192 /* In */ | 16384 /* Out */);
84181
84181
  if (modifiers) {
84182
84182
  const symbol = getSymbolOfDeclaration(node.parent);
84183
- if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */))) {
84183
+ if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) {
84184
84184
  error2(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
84185
84185
  } else if (modifiers === 8192 /* In */ || modifiers === 16384 /* Out */) {
84186
84186
  (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) });
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.7.0-dev.20240902",
5
+ "version": "5.7.0-dev.20240904",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -117,5 +117,5 @@
117
117
  "node": "20.1.0",
118
118
  "npm": "8.19.4"
119
119
  },
120
- "gitHead": "a709f9899c2a544b6de65a0f2623ecbbe1394eab"
120
+ "gitHead": "29d92edd1c105b09bc5dbf567e11f34657977d44"
121
121
  }