typescript 4.7.0-dev.20220312 → 4.7.0-dev.20220315

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.es5.d.ts CHANGED
@@ -230,7 +230,7 @@ interface ObjectConstructor {
230
230
  * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
231
231
  * @param o Object on which to lock the attributes.
232
232
  */
233
- freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | symbol>(o: T): Readonly<T>;
233
+ freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
234
234
 
235
235
  /**
236
236
  * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.7";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220312";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220315";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -36628,7 +36628,6 @@ var ts;
36628
36628
  node = node.parent;
36629
36629
  }
36630
36630
  return !isStatementCondition(node) &&
36631
- !isLogicalAssignmentExpression(node.parent) &&
36632
36631
  !isLogicalExpression(node.parent) &&
36633
36632
  !(ts.isOptionalChain(node.parent) && node.parent.expression === node);
36634
36633
  }
@@ -38389,7 +38388,7 @@ var ts;
38389
38388
  checkStrictModeEvalOrArguments(node, node.name);
38390
38389
  }
38391
38390
  if (!ts.isBindingPattern(node.name)) {
38392
- if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node)) {
38391
+ if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node) && !(ts.getCombinedModifierFlags(node) & 1)) {
38393
38392
  declareSymbolAndAddToSymbolTable(node, 2097152, 2097152);
38394
38393
  }
38395
38394
  else if (ts.isBlockOrCatchScoped(node)) {
package/lib/tsserver.js CHANGED
@@ -100,7 +100,7 @@ var ts;
100
100
  // The following is baselined as a literal template type without intervention
101
101
  /** The version of the TypeScript compiler release */
102
102
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103
- ts.version = ts.versionMajorMinor + ".0-dev.20220312";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20220315";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -44760,7 +44760,6 @@ var ts;
44760
44760
  node = node.parent;
44761
44761
  }
44762
44762
  return !isStatementCondition(node) &&
44763
- !isLogicalAssignmentExpression(node.parent) &&
44764
44763
  !isLogicalExpression(node.parent) &&
44765
44764
  !(ts.isOptionalChain(node.parent) && node.parent.expression === node);
44766
44765
  }
@@ -46790,7 +46789,7 @@ var ts;
46790
46789
  checkStrictModeEvalOrArguments(node, node.name);
46791
46790
  }
46792
46791
  if (!ts.isBindingPattern(node.name)) {
46793
- if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node)) {
46792
+ if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node) && !(ts.getCombinedModifierFlags(node) & 1 /* Export */)) {
46794
46793
  declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);
46795
46794
  }
46796
46795
  else if (ts.isBlockOrCatchScoped(node)) {
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220312";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220315";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -44954,7 +44954,6 @@ var ts;
44954
44954
  node = node.parent;
44955
44955
  }
44956
44956
  return !isStatementCondition(node) &&
44957
- !isLogicalAssignmentExpression(node.parent) &&
44958
44957
  !isLogicalExpression(node.parent) &&
44959
44958
  !(ts.isOptionalChain(node.parent) && node.parent.expression === node);
44960
44959
  }
@@ -46984,7 +46983,7 @@ var ts;
46984
46983
  checkStrictModeEvalOrArguments(node, node.name);
46985
46984
  }
46986
46985
  if (!ts.isBindingPattern(node.name)) {
46987
- if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node)) {
46986
+ if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node) && !(ts.getCombinedModifierFlags(node) & 1 /* Export */)) {
46988
46987
  declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);
46989
46988
  }
46990
46989
  else if (ts.isBlockOrCatchScoped(node)) {
package/lib/typescript.js CHANGED
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220312";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220315";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -44954,7 +44954,6 @@ var ts;
44954
44954
  node = node.parent;
44955
44955
  }
44956
44956
  return !isStatementCondition(node) &&
44957
- !isLogicalAssignmentExpression(node.parent) &&
44958
44957
  !isLogicalExpression(node.parent) &&
44959
44958
  !(ts.isOptionalChain(node.parent) && node.parent.expression === node);
44960
44959
  }
@@ -46984,7 +46983,7 @@ var ts;
46984
46983
  checkStrictModeEvalOrArguments(node, node.name);
46985
46984
  }
46986
46985
  if (!ts.isBindingPattern(node.name)) {
46987
- if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node)) {
46986
+ if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node) && !(ts.getCombinedModifierFlags(node) & 1 /* Export */)) {
46988
46987
  declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);
46989
46988
  }
46990
46989
  else if (ts.isBlockOrCatchScoped(node)) {
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220312";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220315";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -44954,7 +44954,6 @@ var ts;
44954
44954
  node = node.parent;
44955
44955
  }
44956
44956
  return !isStatementCondition(node) &&
44957
- !isLogicalAssignmentExpression(node.parent) &&
44958
44957
  !isLogicalExpression(node.parent) &&
44959
44958
  !(ts.isOptionalChain(node.parent) && node.parent.expression === node);
44960
44959
  }
@@ -46984,7 +46983,7 @@ var ts;
46984
46983
  checkStrictModeEvalOrArguments(node, node.name);
46985
46984
  }
46986
46985
  if (!ts.isBindingPattern(node.name)) {
46987
- if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node)) {
46986
+ if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node) && !(ts.getCombinedModifierFlags(node) & 1 /* Export */)) {
46988
46987
  declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);
46989
46988
  }
46990
46989
  else if (ts.isBlockOrCatchScoped(node)) {
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = ts.versionMajorMinor + ".0-dev.20220312";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220315";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -44749,7 +44749,6 @@ var ts;
44749
44749
  node = node.parent;
44750
44750
  }
44751
44751
  return !isStatementCondition(node) &&
44752
- !isLogicalAssignmentExpression(node.parent) &&
44753
44752
  !isLogicalExpression(node.parent) &&
44754
44753
  !(ts.isOptionalChain(node.parent) && node.parent.expression === node);
44755
44754
  }
@@ -46779,7 +46778,7 @@ var ts;
46779
46778
  checkStrictModeEvalOrArguments(node, node.name);
46780
46779
  }
46781
46780
  if (!ts.isBindingPattern(node.name)) {
46782
- if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node)) {
46781
+ if (ts.isInJSFile(node) && ts.isVariableDeclarationInitializedToBareOrAccessedRequire(node) && !ts.getJSDocTypeTag(node) && !(ts.getCombinedModifierFlags(node) & 1 /* Export */)) {
46783
46782
  declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);
46784
46783
  }
46785
46784
  else if (ts.isBlockOrCatchScoped(node)) {
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": "4.7.0-dev.20220312",
5
+ "version": "4.7.0-dev.20220315",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [