@typescript-deploys/pr-build 5.0.0-pr-51524-2 → 5.0.0-pr-52321-12

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
@@ -40909,9 +40909,6 @@ function createBinder() {
40909
40909
  return bindAnonymousDeclaration(node, 16 /* Function */, bindingName);
40910
40910
  }
40911
40911
  function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) {
40912
- if (isInJSFile(node) && node.flags & 16777216 /* Ambient */) {
40913
- return;
40914
- }
40915
40912
  if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) {
40916
40913
  emitFlags |= 2048 /* HasAsyncFunctions */;
40917
40914
  }
@@ -50437,6 +50434,7 @@ function createTypeChecker(host) {
50437
50434
  }
50438
50435
  if (!type) {
50439
50436
  let types;
50437
+ let declarationsForTypes;
50440
50438
  if (symbol.declarations) {
50441
50439
  let jsdocType;
50442
50440
  for (const declaration of symbol.declarations) {
@@ -50456,7 +50454,8 @@ function createTypeChecker(host) {
50456
50454
  jsdocType = getAnnotatedTypeForAssignmentDeclaration(jsdocType, expression, symbol, declaration);
50457
50455
  }
50458
50456
  if (!jsdocType) {
50459
- (types != null ? types : types = []).push(isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);
50457
+ types = append(types, isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);
50458
+ declarationsForTypes = append(declarationsForTypes, declaration);
50460
50459
  }
50461
50460
  }
50462
50461
  type = jsdocType;
@@ -50465,7 +50464,7 @@ function createTypeChecker(host) {
50465
50464
  if (!length(types)) {
50466
50465
  return errorType;
50467
50466
  }
50468
- let constructorTypes = definedInConstructor && symbol.declarations ? getConstructorDefinedThisAssignmentTypes(types, symbol.declarations) : void 0;
50467
+ let constructorTypes = definedInConstructor && declarationsForTypes ? getConstructorDefinedThisAssignmentTypes(types, declarationsForTypes) : void 0;
50469
50468
  if (definedInMethod) {
50470
50469
  const propType = getTypeOfPropertyInBaseClass(symbol);
50471
50470
  if (propType) {
package/lib/tsserver.js CHANGED
@@ -45879,9 +45879,6 @@ function createBinder() {
45879
45879
  return bindAnonymousDeclaration(node, 16 /* Function */, bindingName);
45880
45880
  }
45881
45881
  function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) {
45882
- if (isInJSFile(node) && node.flags & 16777216 /* Ambient */) {
45883
- return;
45884
- }
45885
45882
  if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) {
45886
45883
  emitFlags |= 2048 /* HasAsyncFunctions */;
45887
45884
  }
@@ -55455,6 +55452,7 @@ function createTypeChecker(host) {
55455
55452
  }
55456
55453
  if (!type) {
55457
55454
  let types;
55455
+ let declarationsForTypes;
55458
55456
  if (symbol.declarations) {
55459
55457
  let jsdocType;
55460
55458
  for (const declaration of symbol.declarations) {
@@ -55474,7 +55472,8 @@ function createTypeChecker(host) {
55474
55472
  jsdocType = getAnnotatedTypeForAssignmentDeclaration(jsdocType, expression, symbol, declaration);
55475
55473
  }
55476
55474
  if (!jsdocType) {
55477
- (types != null ? types : types = []).push(isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);
55475
+ types = append(types, isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);
55476
+ declarationsForTypes = append(declarationsForTypes, declaration);
55478
55477
  }
55479
55478
  }
55480
55479
  type = jsdocType;
@@ -55483,7 +55482,7 @@ function createTypeChecker(host) {
55483
55482
  if (!length(types)) {
55484
55483
  return errorType;
55485
55484
  }
55486
- let constructorTypes = definedInConstructor && symbol.declarations ? getConstructorDefinedThisAssignmentTypes(types, symbol.declarations) : void 0;
55485
+ let constructorTypes = definedInConstructor && declarationsForTypes ? getConstructorDefinedThisAssignmentTypes(types, declarationsForTypes) : void 0;
55487
55486
  if (definedInMethod) {
55488
55487
  const propType = getTypeOfPropertyInBaseClass(symbol);
55489
55488
  if (propType) {
@@ -43355,9 +43355,6 @@ ${lanes.join("\n")}
43355
43355
  return bindAnonymousDeclaration(node, 16 /* Function */, bindingName);
43356
43356
  }
43357
43357
  function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) {
43358
- if (isInJSFile(node) && node.flags & 16777216 /* Ambient */) {
43359
- return;
43360
- }
43361
43358
  if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) {
43362
43359
  emitFlags |= 2048 /* HasAsyncFunctions */;
43363
43360
  }
@@ -52840,6 +52837,7 @@ ${lanes.join("\n")}
52840
52837
  }
52841
52838
  if (!type) {
52842
52839
  let types;
52840
+ let declarationsForTypes;
52843
52841
  if (symbol.declarations) {
52844
52842
  let jsdocType;
52845
52843
  for (const declaration of symbol.declarations) {
@@ -52859,7 +52857,8 @@ ${lanes.join("\n")}
52859
52857
  jsdocType = getAnnotatedTypeForAssignmentDeclaration(jsdocType, expression, symbol, declaration);
52860
52858
  }
52861
52859
  if (!jsdocType) {
52862
- (types != null ? types : types = []).push(isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);
52860
+ types = append(types, isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);
52861
+ declarationsForTypes = append(declarationsForTypes, declaration);
52863
52862
  }
52864
52863
  }
52865
52864
  type = jsdocType;
@@ -52868,7 +52867,7 @@ ${lanes.join("\n")}
52868
52867
  if (!length(types)) {
52869
52868
  return errorType;
52870
52869
  }
52871
- let constructorTypes = definedInConstructor && symbol.declarations ? getConstructorDefinedThisAssignmentTypes(types, symbol.declarations) : void 0;
52870
+ let constructorTypes = definedInConstructor && declarationsForTypes ? getConstructorDefinedThisAssignmentTypes(types, declarationsForTypes) : void 0;
52872
52871
  if (definedInMethod) {
52873
52872
  const propType = getTypeOfPropertyInBaseClass(symbol);
52874
52873
  if (propType) {
package/lib/typescript.js CHANGED
@@ -43355,9 +43355,6 @@ ${lanes.join("\n")}
43355
43355
  return bindAnonymousDeclaration(node, 16 /* Function */, bindingName);
43356
43356
  }
43357
43357
  function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) {
43358
- if (isInJSFile(node) && node.flags & 16777216 /* Ambient */) {
43359
- return;
43360
- }
43361
43358
  if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) {
43362
43359
  emitFlags |= 2048 /* HasAsyncFunctions */;
43363
43360
  }
@@ -52840,6 +52837,7 @@ ${lanes.join("\n")}
52840
52837
  }
52841
52838
  if (!type) {
52842
52839
  let types;
52840
+ let declarationsForTypes;
52843
52841
  if (symbol.declarations) {
52844
52842
  let jsdocType;
52845
52843
  for (const declaration of symbol.declarations) {
@@ -52859,7 +52857,8 @@ ${lanes.join("\n")}
52859
52857
  jsdocType = getAnnotatedTypeForAssignmentDeclaration(jsdocType, expression, symbol, declaration);
52860
52858
  }
52861
52859
  if (!jsdocType) {
52862
- (types != null ? types : types = []).push(isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);
52860
+ types = append(types, isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);
52861
+ declarationsForTypes = append(declarationsForTypes, declaration);
52863
52862
  }
52864
52863
  }
52865
52864
  type = jsdocType;
@@ -52868,7 +52867,7 @@ ${lanes.join("\n")}
52868
52867
  if (!length(types)) {
52869
52868
  return errorType;
52870
52869
  }
52871
- let constructorTypes = definedInConstructor && symbol.declarations ? getConstructorDefinedThisAssignmentTypes(types, symbol.declarations) : void 0;
52870
+ let constructorTypes = definedInConstructor && declarationsForTypes ? getConstructorDefinedThisAssignmentTypes(types, declarationsForTypes) : void 0;
52872
52871
  if (definedInMethod) {
52873
52872
  const propType = getTypeOfPropertyInBaseClass(symbol);
52874
52873
  if (propType) {
@@ -32249,9 +32249,6 @@ function createBinder() {
32249
32249
  return bindAnonymousDeclaration(node, 16 /* Function */, bindingName);
32250
32250
  }
32251
32251
  function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) {
32252
- if (isInJSFile(node) && node.flags & 16777216 /* Ambient */) {
32253
- return;
32254
- }
32255
32252
  if (!file.isDeclarationFile && !(node.flags & 16777216 /* Ambient */) && isAsyncFunction(node)) {
32256
32253
  emitFlags |= 2048 /* HasAsyncFunctions */;
32257
32254
  }
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.0.0-pr-51524-2",
5
+ "version": "5.0.0-pr-52321-12",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [