typescript 5.0.0-dev.20230118 → 5.0.0-dev.20230119

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 CHANGED
@@ -23,7 +23,7 @@ var __export = (target, all) => {
23
23
 
24
24
  // src/compiler/corePublic.ts
25
25
  var versionMajorMinor = "5.0";
26
- var version = `${versionMajorMinor}.0-dev.20230118`;
26
+ var version = `${versionMajorMinor}.0-dev.20230119`;
27
27
 
28
28
  // src/compiler/core.ts
29
29
  var emptyArray = [];
@@ -62048,7 +62048,7 @@ function createTypeChecker(host) {
62048
62048
  } else {
62049
62049
  const middleLength = targetArity - startLength - endLength;
62050
62050
  if (middleLength === 2) {
62051
- if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
62051
+ if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
62052
62052
  const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
62053
62053
  if (targetInfo && targetInfo.impliedArity !== void 0) {
62054
62054
  inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
@@ -62062,7 +62062,7 @@ function createTypeChecker(host) {
62062
62062
  inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]);
62063
62063
  inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
62064
62064
  }
62065
- } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
62065
+ } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
62066
62066
  const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
62067
62067
  const constraint = param && getBaseConstraintOfType(param);
62068
62068
  if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) {
@@ -62082,10 +62082,10 @@ function createTypeChecker(host) {
62082
62082
  }
62083
62083
  } else if (middleLength === 1 && elementFlags[startLength] & 8 /* Variadic */) {
62084
62084
  const endsInOptional = target.target.elementFlags[targetArity - 1] & 2 /* Optional */;
62085
- const sourceSlice = isTupleType(source) ? sliceTupleType(source, startLength, endLength) : createArrayType(getTypeArguments(source)[0]);
62085
+ const sourceSlice = sliceTupleType(source, startLength, endLength);
62086
62086
  inferWithPriority(sourceSlice, elementTypes[startLength], endsInOptional ? 2 /* SpeculativeTuple */ : 0);
62087
62087
  } else if (middleLength === 1 && elementFlags[startLength] & 4 /* Rest */) {
62088
- const restType = isTupleType(source) ? getElementTypeOfSliceOfTupleType(source, startLength, endLength) : getTypeArguments(source)[0];
62088
+ const restType = getElementTypeOfSliceOfTupleType(source, startLength, endLength);
62089
62089
  if (restType) {
62090
62090
  inferFromTypes(restType, elementTypes[startLength]);
62091
62091
  }
package/lib/tsserver.js CHANGED
@@ -2682,7 +2682,7 @@ __export(ts_server_exports3, {
2682
2682
 
2683
2683
  // src/compiler/corePublic.ts
2684
2684
  var versionMajorMinor = "5.0";
2685
- var version = `${versionMajorMinor}.0-dev.20230118`;
2685
+ var version = `${versionMajorMinor}.0-dev.20230119`;
2686
2686
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2687
2687
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2688
2688
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -66993,7 +66993,7 @@ function createTypeChecker(host) {
66993
66993
  } else {
66994
66994
  const middleLength = targetArity - startLength - endLength;
66995
66995
  if (middleLength === 2) {
66996
- if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
66996
+ if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
66997
66997
  const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
66998
66998
  if (targetInfo && targetInfo.impliedArity !== void 0) {
66999
66999
  inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
@@ -67007,7 +67007,7 @@ function createTypeChecker(host) {
67007
67007
  inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]);
67008
67008
  inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
67009
67009
  }
67010
- } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
67010
+ } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
67011
67011
  const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
67012
67012
  const constraint = param && getBaseConstraintOfType(param);
67013
67013
  if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) {
@@ -67027,10 +67027,10 @@ function createTypeChecker(host) {
67027
67027
  }
67028
67028
  } else if (middleLength === 1 && elementFlags[startLength] & 8 /* Variadic */) {
67029
67029
  const endsInOptional = target.target.elementFlags[targetArity - 1] & 2 /* Optional */;
67030
- const sourceSlice = isTupleType(source) ? sliceTupleType(source, startLength, endLength) : createArrayType(getTypeArguments(source)[0]);
67030
+ const sourceSlice = sliceTupleType(source, startLength, endLength);
67031
67031
  inferWithPriority(sourceSlice, elementTypes[startLength], endsInOptional ? 2 /* SpeculativeTuple */ : 0);
67032
67032
  } else if (middleLength === 1 && elementFlags[startLength] & 4 /* Rest */) {
67033
- const restType = isTupleType(source) ? getElementTypeOfSliceOfTupleType(source, startLength, endLength) : getTypeArguments(source)[0];
67033
+ const restType = getElementTypeOfSliceOfTupleType(source, startLength, endLength);
67034
67034
  if (restType) {
67035
67035
  inferFromTypes(restType, elementTypes[startLength]);
67036
67036
  }
@@ -42,7 +42,7 @@ var ts = (() => {
42
42
  "src/compiler/corePublic.ts"() {
43
43
  "use strict";
44
44
  versionMajorMinor = "5.0";
45
- version = `${versionMajorMinor}.0-dev.20230118`;
45
+ version = `${versionMajorMinor}.0-dev.20230119`;
46
46
  Comparison = /* @__PURE__ */ ((Comparison3) => {
47
47
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
48
48
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -64415,7 +64415,7 @@ ${lanes.join("\n")}
64415
64415
  } else {
64416
64416
  const middleLength = targetArity - startLength - endLength;
64417
64417
  if (middleLength === 2) {
64418
- if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
64418
+ if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
64419
64419
  const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
64420
64420
  if (targetInfo && targetInfo.impliedArity !== void 0) {
64421
64421
  inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
@@ -64429,7 +64429,7 @@ ${lanes.join("\n")}
64429
64429
  inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]);
64430
64430
  inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
64431
64431
  }
64432
- } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
64432
+ } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
64433
64433
  const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
64434
64434
  const constraint = param && getBaseConstraintOfType(param);
64435
64435
  if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) {
@@ -64449,10 +64449,10 @@ ${lanes.join("\n")}
64449
64449
  }
64450
64450
  } else if (middleLength === 1 && elementFlags[startLength] & 8 /* Variadic */) {
64451
64451
  const endsInOptional = target.target.elementFlags[targetArity - 1] & 2 /* Optional */;
64452
- const sourceSlice = isTupleType(source) ? sliceTupleType(source, startLength, endLength) : createArrayType(getTypeArguments(source)[0]);
64452
+ const sourceSlice = sliceTupleType(source, startLength, endLength);
64453
64453
  inferWithPriority(sourceSlice, elementTypes[startLength], endsInOptional ? 2 /* SpeculativeTuple */ : 0);
64454
64454
  } else if (middleLength === 1 && elementFlags[startLength] & 4 /* Rest */) {
64455
- const restType = isTupleType(source) ? getElementTypeOfSliceOfTupleType(source, startLength, endLength) : getTypeArguments(source)[0];
64455
+ const restType = getElementTypeOfSliceOfTupleType(source, startLength, endLength);
64456
64456
  if (restType) {
64457
64457
  inferFromTypes(restType, elementTypes[startLength]);
64458
64458
  }
package/lib/typescript.js CHANGED
@@ -42,7 +42,7 @@ var ts = (() => {
42
42
  "src/compiler/corePublic.ts"() {
43
43
  "use strict";
44
44
  versionMajorMinor = "5.0";
45
- version = `${versionMajorMinor}.0-dev.20230118`;
45
+ version = `${versionMajorMinor}.0-dev.20230119`;
46
46
  Comparison = /* @__PURE__ */ ((Comparison3) => {
47
47
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
48
48
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -64415,7 +64415,7 @@ ${lanes.join("\n")}
64415
64415
  } else {
64416
64416
  const middleLength = targetArity - startLength - endLength;
64417
64417
  if (middleLength === 2) {
64418
- if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
64418
+ if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
64419
64419
  const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
64420
64420
  if (targetInfo && targetInfo.impliedArity !== void 0) {
64421
64421
  inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
@@ -64429,7 +64429,7 @@ ${lanes.join("\n")}
64429
64429
  inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]);
64430
64430
  inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
64431
64431
  }
64432
- } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
64432
+ } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
64433
64433
  const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
64434
64434
  const constraint = param && getBaseConstraintOfType(param);
64435
64435
  if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) {
@@ -64449,10 +64449,10 @@ ${lanes.join("\n")}
64449
64449
  }
64450
64450
  } else if (middleLength === 1 && elementFlags[startLength] & 8 /* Variadic */) {
64451
64451
  const endsInOptional = target.target.elementFlags[targetArity - 1] & 2 /* Optional */;
64452
- const sourceSlice = isTupleType(source) ? sliceTupleType(source, startLength, endLength) : createArrayType(getTypeArguments(source)[0]);
64452
+ const sourceSlice = sliceTupleType(source, startLength, endLength);
64453
64453
  inferWithPriority(sourceSlice, elementTypes[startLength], endsInOptional ? 2 /* SpeculativeTuple */ : 0);
64454
64454
  } else if (middleLength === 1 && elementFlags[startLength] & 4 /* Rest */) {
64455
- const restType = isTupleType(source) ? getElementTypeOfSliceOfTupleType(source, startLength, endLength) : getTypeArguments(source)[0];
64455
+ const restType = getElementTypeOfSliceOfTupleType(source, startLength, endLength);
64456
64456
  if (restType) {
64457
64457
  inferFromTypes(restType, elementTypes[startLength]);
64458
64458
  }
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.0";
57
- var version = `${versionMajorMinor}.0-dev.20230118`;
57
+ var version = `${versionMajorMinor}.0-dev.20230119`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
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.0.0-dev.20230118",
5
+ "version": "5.0.0-dev.20230119",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  "chokidar": "^3.5.3",
61
61
  "del": "^6.1.1",
62
62
  "diff": "^5.1.0",
63
- "esbuild": "^0.16.5",
63
+ "esbuild": "^0.17.2",
64
64
  "eslint": "^8.22.0",
65
65
  "eslint-formatter-autolinkable-stylish": "^1.2.0",
66
66
  "eslint-plugin-import": "^2.26.0",