@typescript-deploys/pr-build 5.3.0-pr-54960-5 → 5.3.0-pr-55449-9

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
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.3";
21
- var version = `${versionMajorMinor}.0-insiders.20230819`;
21
+ var version = `${versionMajorMinor}.0-insiders.20230821`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -54740,7 +54740,7 @@ function createTypeChecker(host) {
54740
54740
  }
54741
54741
  const iife = getImmediatelyInvokedFunctionExpression(node.parent);
54742
54742
  if (iife) {
54743
- return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= getEffectiveCallArguments(iife).length;
54743
+ return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= iife.arguments.length;
54744
54744
  }
54745
54745
  return false;
54746
54746
  }
@@ -72040,14 +72040,14 @@ function createTypeChecker(host) {
72040
72040
  return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType;
72041
72041
  }
72042
72042
  function getTypeOfParameter(symbol) {
72043
- const declaration = symbol.valueDeclaration;
72044
- return addOptionality(
72045
- getTypeOfSymbol(symbol),
72046
- /*isProperty*/
72047
- false,
72048
- /*isOptional*/
72049
- !!declaration && (hasInitializer(declaration) || isOptionalDeclaration(declaration))
72050
- );
72043
+ const type = getTypeOfSymbol(symbol);
72044
+ if (strictNullChecks) {
72045
+ const declaration = symbol.valueDeclaration;
72046
+ if (declaration && hasInitializer(declaration)) {
72047
+ return getOptionalType(type);
72048
+ }
72049
+ }
72050
+ return type;
72051
72051
  }
72052
72052
  function getTupleElementLabel(d, index, restParameterName = "arg") {
72053
72053
  if (!d) {
@@ -72314,29 +72314,23 @@ function createTypeChecker(host) {
72314
72314
  assignParameterType(parameter);
72315
72315
  }
72316
72316
  }
72317
- function assignParameterType(parameter, contextualType) {
72317
+ function assignParameterType(parameter, type) {
72318
72318
  const links = getSymbolLinks(parameter);
72319
72319
  if (!links.type) {
72320
72320
  const declaration = parameter.valueDeclaration;
72321
- links.type = addOptionality(
72322
- contextualType || (declaration ? getWidenedTypeForVariableLikeDeclaration(
72323
- declaration,
72324
- /*reportErrors*/
72325
- true
72326
- ) : getTypeOfSymbol(parameter)),
72327
- /*isProperty*/
72328
- false,
72329
- /*isOptional*/
72330
- declaration && !declaration.initializer && isOptionalDeclaration(declaration)
72331
- );
72321
+ links.type = type || (declaration ? getWidenedTypeForVariableLikeDeclaration(
72322
+ declaration,
72323
+ /*reportErrors*/
72324
+ true
72325
+ ) : getTypeOfSymbol(parameter));
72332
72326
  if (declaration && declaration.name.kind !== 80 /* Identifier */) {
72333
72327
  if (links.type === unknownType) {
72334
72328
  links.type = getTypeFromBindingPattern(declaration.name);
72335
72329
  }
72336
72330
  assignBindingElementTypes(declaration.name, links.type);
72337
72331
  }
72338
- } else if (contextualType) {
72339
- Debug.assertEqual(links.type, contextualType, "Parameter symbol already has a cached type which differs from newly assigned type");
72332
+ } else if (type) {
72333
+ Debug.assertEqual(links.type, type, "Parameter symbol already has a cached type which differs from newly assigned type");
72340
72334
  }
72341
72335
  }
72342
72336
  function assignBindingElementTypes(pattern, parentType) {
@@ -73164,8 +73158,9 @@ function createTypeChecker(host) {
73164
73158
  if (symbol) {
73165
73159
  if (isReadonlySymbol(symbol)) {
73166
73160
  error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
73161
+ } else {
73162
+ checkDeleteExpressionMustBeOptional(expr, symbol);
73167
73163
  }
73168
- checkDeleteExpressionMustBeOptional(expr, symbol);
73169
73164
  }
73170
73165
  return booleanType;
73171
73166
  }
package/lib/tsserver.js CHANGED
@@ -2333,7 +2333,7 @@ module.exports = __toCommonJS(server_exports);
2333
2333
 
2334
2334
  // src/compiler/corePublic.ts
2335
2335
  var versionMajorMinor = "5.3";
2336
- var version = `${versionMajorMinor}.0-insiders.20230819`;
2336
+ var version = `${versionMajorMinor}.0-insiders.20230821`;
2337
2337
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2338
2338
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2339
2339
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -59448,7 +59448,7 @@ function createTypeChecker(host) {
59448
59448
  }
59449
59449
  const iife = getImmediatelyInvokedFunctionExpression(node.parent);
59450
59450
  if (iife) {
59451
- return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= getEffectiveCallArguments(iife).length;
59451
+ return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= iife.arguments.length;
59452
59452
  }
59453
59453
  return false;
59454
59454
  }
@@ -76748,14 +76748,14 @@ function createTypeChecker(host) {
76748
76748
  return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType;
76749
76749
  }
76750
76750
  function getTypeOfParameter(symbol) {
76751
- const declaration = symbol.valueDeclaration;
76752
- return addOptionality(
76753
- getTypeOfSymbol(symbol),
76754
- /*isProperty*/
76755
- false,
76756
- /*isOptional*/
76757
- !!declaration && (hasInitializer(declaration) || isOptionalDeclaration(declaration))
76758
- );
76751
+ const type = getTypeOfSymbol(symbol);
76752
+ if (strictNullChecks) {
76753
+ const declaration = symbol.valueDeclaration;
76754
+ if (declaration && hasInitializer(declaration)) {
76755
+ return getOptionalType(type);
76756
+ }
76757
+ }
76758
+ return type;
76759
76759
  }
76760
76760
  function getTupleElementLabel(d, index, restParameterName = "arg") {
76761
76761
  if (!d) {
@@ -77022,29 +77022,23 @@ function createTypeChecker(host) {
77022
77022
  assignParameterType(parameter);
77023
77023
  }
77024
77024
  }
77025
- function assignParameterType(parameter, contextualType) {
77025
+ function assignParameterType(parameter, type) {
77026
77026
  const links = getSymbolLinks(parameter);
77027
77027
  if (!links.type) {
77028
77028
  const declaration = parameter.valueDeclaration;
77029
- links.type = addOptionality(
77030
- contextualType || (declaration ? getWidenedTypeForVariableLikeDeclaration(
77031
- declaration,
77032
- /*reportErrors*/
77033
- true
77034
- ) : getTypeOfSymbol(parameter)),
77035
- /*isProperty*/
77036
- false,
77037
- /*isOptional*/
77038
- declaration && !declaration.initializer && isOptionalDeclaration(declaration)
77039
- );
77029
+ links.type = type || (declaration ? getWidenedTypeForVariableLikeDeclaration(
77030
+ declaration,
77031
+ /*reportErrors*/
77032
+ true
77033
+ ) : getTypeOfSymbol(parameter));
77040
77034
  if (declaration && declaration.name.kind !== 80 /* Identifier */) {
77041
77035
  if (links.type === unknownType) {
77042
77036
  links.type = getTypeFromBindingPattern(declaration.name);
77043
77037
  }
77044
77038
  assignBindingElementTypes(declaration.name, links.type);
77045
77039
  }
77046
- } else if (contextualType) {
77047
- Debug.assertEqual(links.type, contextualType, "Parameter symbol already has a cached type which differs from newly assigned type");
77040
+ } else if (type) {
77041
+ Debug.assertEqual(links.type, type, "Parameter symbol already has a cached type which differs from newly assigned type");
77048
77042
  }
77049
77043
  }
77050
77044
  function assignBindingElementTypes(pattern, parentType) {
@@ -77872,8 +77866,9 @@ function createTypeChecker(host) {
77872
77866
  if (symbol) {
77873
77867
  if (isReadonlySymbol(symbol)) {
77874
77868
  error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
77869
+ } else {
77870
+ checkDeleteExpressionMustBeOptional(expr, symbol);
77875
77871
  }
77876
- checkDeleteExpressionMustBeOptional(expr, symbol);
77877
77872
  }
77878
77873
  return booleanType;
77879
77874
  }
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.3";
38
- version = `${versionMajorMinor}.0-insiders.20230819`;
38
+ version = `${versionMajorMinor}.0-insiders.20230821`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -57209,7 +57209,7 @@ ${lanes.join("\n")}
57209
57209
  }
57210
57210
  const iife = getImmediatelyInvokedFunctionExpression(node.parent);
57211
57211
  if (iife) {
57212
- return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= getEffectiveCallArguments(iife).length;
57212
+ return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= iife.arguments.length;
57213
57213
  }
57214
57214
  return false;
57215
57215
  }
@@ -74509,14 +74509,14 @@ ${lanes.join("\n")}
74509
74509
  return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType;
74510
74510
  }
74511
74511
  function getTypeOfParameter(symbol) {
74512
- const declaration = symbol.valueDeclaration;
74513
- return addOptionality(
74514
- getTypeOfSymbol(symbol),
74515
- /*isProperty*/
74516
- false,
74517
- /*isOptional*/
74518
- !!declaration && (hasInitializer(declaration) || isOptionalDeclaration(declaration))
74519
- );
74512
+ const type = getTypeOfSymbol(symbol);
74513
+ if (strictNullChecks) {
74514
+ const declaration = symbol.valueDeclaration;
74515
+ if (declaration && hasInitializer(declaration)) {
74516
+ return getOptionalType(type);
74517
+ }
74518
+ }
74519
+ return type;
74520
74520
  }
74521
74521
  function getTupleElementLabel(d, index, restParameterName = "arg") {
74522
74522
  if (!d) {
@@ -74783,29 +74783,23 @@ ${lanes.join("\n")}
74783
74783
  assignParameterType(parameter);
74784
74784
  }
74785
74785
  }
74786
- function assignParameterType(parameter, contextualType) {
74786
+ function assignParameterType(parameter, type) {
74787
74787
  const links = getSymbolLinks(parameter);
74788
74788
  if (!links.type) {
74789
74789
  const declaration = parameter.valueDeclaration;
74790
- links.type = addOptionality(
74791
- contextualType || (declaration ? getWidenedTypeForVariableLikeDeclaration(
74792
- declaration,
74793
- /*reportErrors*/
74794
- true
74795
- ) : getTypeOfSymbol(parameter)),
74796
- /*isProperty*/
74797
- false,
74798
- /*isOptional*/
74799
- declaration && !declaration.initializer && isOptionalDeclaration(declaration)
74800
- );
74790
+ links.type = type || (declaration ? getWidenedTypeForVariableLikeDeclaration(
74791
+ declaration,
74792
+ /*reportErrors*/
74793
+ true
74794
+ ) : getTypeOfSymbol(parameter));
74801
74795
  if (declaration && declaration.name.kind !== 80 /* Identifier */) {
74802
74796
  if (links.type === unknownType) {
74803
74797
  links.type = getTypeFromBindingPattern(declaration.name);
74804
74798
  }
74805
74799
  assignBindingElementTypes(declaration.name, links.type);
74806
74800
  }
74807
- } else if (contextualType) {
74808
- Debug.assertEqual(links.type, contextualType, "Parameter symbol already has a cached type which differs from newly assigned type");
74801
+ } else if (type) {
74802
+ Debug.assertEqual(links.type, type, "Parameter symbol already has a cached type which differs from newly assigned type");
74809
74803
  }
74810
74804
  }
74811
74805
  function assignBindingElementTypes(pattern, parentType) {
@@ -75633,8 +75627,9 @@ ${lanes.join("\n")}
75633
75627
  if (symbol) {
75634
75628
  if (isReadonlySymbol(symbol)) {
75635
75629
  error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
75630
+ } else {
75631
+ checkDeleteExpressionMustBeOptional(expr, symbol);
75636
75632
  }
75637
- checkDeleteExpressionMustBeOptional(expr, symbol);
75638
75633
  }
75639
75634
  return booleanType;
75640
75635
  }
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.3";
57
- var version = `${versionMajorMinor}.0-insiders.20230819`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230821`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.3.0-pr-54960-5",
5
+ "version": "5.3.0-pr-55449-9",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -116,5 +116,5 @@
116
116
  "node": "20.1.0",
117
117
  "npm": "8.19.4"
118
118
  },
119
- "gitHead": "98e710847f6e28b395b7fc722bf7b8d555e0b651"
119
+ "gitHead": "87ce66cf9383513524b9f91cca3314885758c7b1"
120
120
  }