@typescript-deploys/pr-build 5.5.0-pr-58404-2 → 5.5.0-pr-58440-3

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.5";
21
- var version = `${versionMajorMinor}.0-insiders.20240503`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240505`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -16360,6 +16360,8 @@ function getAllAccessorDeclarations(declarations, accessor) {
16360
16360
  function getEffectiveTypeAnnotationNode(node) {
16361
16361
  if (!isInJSFile(node) && isFunctionDeclaration(node))
16362
16362
  return void 0;
16363
+ if (isTypeAliasDeclaration(node))
16364
+ return void 0;
16363
16365
  const type = node.type;
16364
16366
  if (type || !isInJSFile(node))
16365
16367
  return type;
@@ -56190,8 +56192,13 @@ function createTypeChecker(host) {
56190
56192
  if (left.typeParameters && right.typeParameters) {
56191
56193
  paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);
56192
56194
  }
56195
+ let flags = (left.flags | right.flags) & (167 /* PropagatingFlags */ & ~1 /* HasRestParameter */);
56193
56196
  const declaration = left.declaration;
56194
56197
  const params = combineUnionParameters(left, right, paramMapper);
56198
+ const lastParam = lastOrUndefined(params);
56199
+ if (lastParam && getCheckFlags(lastParam) & 32768 /* RestParameter */) {
56200
+ flags |= 1 /* HasRestParameter */;
56201
+ }
56195
56202
  const thisParam = combineUnionThisParam(left.thisParameter, right.thisParameter, paramMapper);
56196
56203
  const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount);
56197
56204
  const result = createSignature(
@@ -56204,7 +56211,7 @@ function createTypeChecker(host) {
56204
56211
  /*resolvedTypePredicate*/
56205
56212
  void 0,
56206
56213
  minArgCount,
56207
- (left.flags | right.flags) & 167 /* PropagatingFlags */
56214
+ flags
56208
56215
  );
56209
56216
  result.compositeKind = 1048576 /* Union */;
56210
56217
  result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]);
@@ -71196,8 +71203,13 @@ function createTypeChecker(host) {
71196
71203
  if (left.typeParameters && right.typeParameters) {
71197
71204
  paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);
71198
71205
  }
71206
+ let flags = (left.flags | right.flags) & (167 /* PropagatingFlags */ & ~1 /* HasRestParameter */);
71199
71207
  const declaration = left.declaration;
71200
71208
  const params = combineIntersectionParameters(left, right, paramMapper);
71209
+ const lastParam = lastOrUndefined(params);
71210
+ if (lastParam && getCheckFlags(lastParam) & 32768 /* RestParameter */) {
71211
+ flags |= 1 /* HasRestParameter */;
71212
+ }
71201
71213
  const thisParam = combineIntersectionThisParam(left.thisParameter, right.thisParameter, paramMapper);
71202
71214
  const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount);
71203
71215
  const result = createSignature(
@@ -71210,7 +71222,7 @@ function createTypeChecker(host) {
71210
71222
  /*resolvedTypePredicate*/
71211
71223
  void 0,
71212
71224
  minArgCount,
71213
- (left.flags | right.flags) & 167 /* PropagatingFlags */
71225
+ flags
71214
71226
  );
71215
71227
  result.compositeKind = 2097152 /* Intersection */;
71216
71228
  result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]);
package/lib/typescript.js CHANGED
@@ -2364,7 +2364,7 @@ module.exports = __toCommonJS(typescript_exports);
2364
2364
 
2365
2365
  // src/compiler/corePublic.ts
2366
2366
  var versionMajorMinor = "5.5";
2367
- var version = `${versionMajorMinor}.0-insiders.20240503`;
2367
+ var version = `${versionMajorMinor}.0-insiders.20240505`;
2368
2368
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2369
2369
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2370
2370
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -20457,6 +20457,8 @@ function getAllAccessorDeclarations(declarations, accessor) {
20457
20457
  function getEffectiveTypeAnnotationNode(node) {
20458
20458
  if (!isInJSFile(node) && isFunctionDeclaration(node))
20459
20459
  return void 0;
20460
+ if (isTypeAliasDeclaration(node))
20461
+ return void 0;
20460
20462
  const type = node.type;
20461
20463
  if (type || !isInJSFile(node))
20462
20464
  return type;
@@ -61030,8 +61032,13 @@ function createTypeChecker(host) {
61030
61032
  if (left.typeParameters && right.typeParameters) {
61031
61033
  paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);
61032
61034
  }
61035
+ let flags = (left.flags | right.flags) & (167 /* PropagatingFlags */ & ~1 /* HasRestParameter */);
61033
61036
  const declaration = left.declaration;
61034
61037
  const params = combineUnionParameters(left, right, paramMapper);
61038
+ const lastParam = lastOrUndefined(params);
61039
+ if (lastParam && getCheckFlags(lastParam) & 32768 /* RestParameter */) {
61040
+ flags |= 1 /* HasRestParameter */;
61041
+ }
61035
61042
  const thisParam = combineUnionThisParam(left.thisParameter, right.thisParameter, paramMapper);
61036
61043
  const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount);
61037
61044
  const result = createSignature(
@@ -61044,7 +61051,7 @@ function createTypeChecker(host) {
61044
61051
  /*resolvedTypePredicate*/
61045
61052
  void 0,
61046
61053
  minArgCount,
61047
- (left.flags | right.flags) & 167 /* PropagatingFlags */
61054
+ flags
61048
61055
  );
61049
61056
  result.compositeKind = 1048576 /* Union */;
61050
61057
  result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]);
@@ -76036,8 +76043,13 @@ function createTypeChecker(host) {
76036
76043
  if (left.typeParameters && right.typeParameters) {
76037
76044
  paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);
76038
76045
  }
76046
+ let flags = (left.flags | right.flags) & (167 /* PropagatingFlags */ & ~1 /* HasRestParameter */);
76039
76047
  const declaration = left.declaration;
76040
76048
  const params = combineIntersectionParameters(left, right, paramMapper);
76049
+ const lastParam = lastOrUndefined(params);
76050
+ if (lastParam && getCheckFlags(lastParam) & 32768 /* RestParameter */) {
76051
+ flags |= 1 /* HasRestParameter */;
76052
+ }
76041
76053
  const thisParam = combineIntersectionThisParam(left.thisParameter, right.thisParameter, paramMapper);
76042
76054
  const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount);
76043
76055
  const result = createSignature(
@@ -76050,7 +76062,7 @@ function createTypeChecker(host) {
76050
76062
  /*resolvedTypePredicate*/
76051
76063
  void 0,
76052
76064
  minArgCount,
76053
- (left.flags | right.flags) & 167 /* PropagatingFlags */
76065
+ flags
76054
76066
  );
76055
76067
  result.compositeKind = 2097152 /* Intersection */;
76056
76068
  result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]);
@@ -149272,7 +149284,7 @@ var invalidOperationsInSyntacticMode = [
149272
149284
  "findRenameLocations",
149273
149285
  "getApplicableRefactors"
149274
149286
  ];
149275
- function createLanguageService(host, documentRegistry = createDocumentRegistry(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames(), host.getCurrentDirectory(), host.jsDocParsingMode), syntaxOnlyOrLanguageServiceMode) {
149287
+ function createLanguageService(host, documentRegistry = createDocumentRegistry(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames(), host.getCurrentDirectory()), syntaxOnlyOrLanguageServiceMode) {
149276
149288
  var _a;
149277
149289
  let languageServiceMode;
149278
149290
  if (syntaxOnlyOrLanguageServiceMode === void 0) {
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.5.0-pr-58404-2",
5
+ "version": "5.5.0-pr-58440-3",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [