@typescript-deploys/pr-build 5.0.0-pr-52836-22 → 5.0.0-pr-52848-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
@@ -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-insiders.20230218`;
26
+ var version = `${versionMajorMinor}.0-insiders.20230219`;
27
27
 
28
28
  // src/compiler/core.ts
29
29
  var emptyArray = [];
@@ -56387,21 +56387,31 @@ function createTypeChecker(host) {
56387
56387
  }
56388
56388
  return type;
56389
56389
  function addSpans(texts2, types2) {
56390
+ const isTextsArray = isArray(texts2);
56390
56391
  for (let i = 0; i < types2.length; i++) {
56391
56392
  const t = types2[i];
56393
+ const addText = isTextsArray ? texts2[i + 1] : texts2;
56392
56394
  if (t.flags & (2944 /* Literal */ | 65536 /* Null */ | 32768 /* Undefined */)) {
56393
56395
  text += getTemplateStringForType(t) || "";
56394
- text += texts2[i + 1];
56396
+ text += addText;
56397
+ if (!isTextsArray)
56398
+ return true;
56395
56399
  } else if (t.flags & 134217728 /* TemplateLiteral */) {
56396
56400
  text += t.texts[0];
56397
56401
  if (!addSpans(t.texts, t.types))
56398
56402
  return false;
56399
- text += texts2[i + 1];
56400
- } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t) || t.flags & 2097152 /* Intersection */) {
56403
+ text += addText;
56404
+ if (!isTextsArray)
56405
+ return true;
56406
+ } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t)) {
56401
56407
  newTypes.push(t);
56402
56408
  newTexts.push(text);
56403
- text = texts2[i + 1];
56404
- } else {
56409
+ text = addText;
56410
+ } else if (t.flags & 2097152 /* Intersection */) {
56411
+ const added = addSpans(texts2[i + 1], t.types);
56412
+ if (!added)
56413
+ return false;
56414
+ } else if (isTextsArray) {
56405
56415
  return false;
56406
56416
  }
56407
56417
  }
@@ -56413,11 +56423,6 @@ function createTypeChecker(host) {
56413
56423
  }
56414
56424
  function createTemplateLiteralType(texts, types) {
56415
56425
  const type = createType(134217728 /* TemplateLiteral */);
56416
- type.objectFlags = getPropagatingFlagsOfTypes(
56417
- types,
56418
- /*excludeKinds*/
56419
- 98304 /* Nullable */
56420
- );
56421
56426
  type.texts = texts;
56422
56427
  type.types = types;
56423
56428
  return type;
@@ -56732,7 +56737,7 @@ function createTypeChecker(host) {
56732
56737
  return !!(getGenericObjectFlags(type) & 8388608 /* IsGenericIndexType */);
56733
56738
  }
56734
56739
  function getGenericObjectFlags(type) {
56735
- if (type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */)) {
56740
+ if (type.flags & 3145728 /* UnionOrIntersection */) {
56736
56741
  if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) {
56737
56742
  type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | reduceLeft(type.types, (flags, t) => flags | getGenericObjectFlags(t), 0);
56738
56743
  }
@@ -56744,7 +56749,7 @@ function createTypeChecker(host) {
56744
56749
  }
56745
56750
  return type.objectFlags & 12582912 /* IsGenericType */;
56746
56751
  }
56747
- return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
56752
+ return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
56748
56753
  }
56749
56754
  function getSimplifiedType(type, writing) {
56750
56755
  return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
@@ -56908,7 +56913,7 @@ function createTypeChecker(host) {
56908
56913
  }
56909
56914
  function getActualTypeVariable(type) {
56910
56915
  if (type.flags & 33554432 /* Substitution */) {
56911
- return type.baseType;
56916
+ return getActualTypeVariable(type.baseType);
56912
56917
  }
56913
56918
  if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) {
56914
56919
  return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));
package/lib/tsserver.js CHANGED
@@ -2288,7 +2288,7 @@ module.exports = __toCommonJS(server_exports);
2288
2288
 
2289
2289
  // src/compiler/corePublic.ts
2290
2290
  var versionMajorMinor = "5.0";
2291
- var version = `${versionMajorMinor}.0-insiders.20230218`;
2291
+ var version = `${versionMajorMinor}.0-insiders.20230219`;
2292
2292
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2293
2293
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2294
2294
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -60994,21 +60994,31 @@ function createTypeChecker(host) {
60994
60994
  }
60995
60995
  return type;
60996
60996
  function addSpans(texts2, types2) {
60997
+ const isTextsArray = isArray(texts2);
60997
60998
  for (let i = 0; i < types2.length; i++) {
60998
60999
  const t = types2[i];
61000
+ const addText = isTextsArray ? texts2[i + 1] : texts2;
60999
61001
  if (t.flags & (2944 /* Literal */ | 65536 /* Null */ | 32768 /* Undefined */)) {
61000
61002
  text += getTemplateStringForType(t) || "";
61001
- text += texts2[i + 1];
61003
+ text += addText;
61004
+ if (!isTextsArray)
61005
+ return true;
61002
61006
  } else if (t.flags & 134217728 /* TemplateLiteral */) {
61003
61007
  text += t.texts[0];
61004
61008
  if (!addSpans(t.texts, t.types))
61005
61009
  return false;
61006
- text += texts2[i + 1];
61007
- } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t) || t.flags & 2097152 /* Intersection */) {
61010
+ text += addText;
61011
+ if (!isTextsArray)
61012
+ return true;
61013
+ } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t)) {
61008
61014
  newTypes.push(t);
61009
61015
  newTexts.push(text);
61010
- text = texts2[i + 1];
61011
- } else {
61016
+ text = addText;
61017
+ } else if (t.flags & 2097152 /* Intersection */) {
61018
+ const added = addSpans(texts2[i + 1], t.types);
61019
+ if (!added)
61020
+ return false;
61021
+ } else if (isTextsArray) {
61012
61022
  return false;
61013
61023
  }
61014
61024
  }
@@ -61020,11 +61030,6 @@ function createTypeChecker(host) {
61020
61030
  }
61021
61031
  function createTemplateLiteralType(texts, types) {
61022
61032
  const type = createType(134217728 /* TemplateLiteral */);
61023
- type.objectFlags = getPropagatingFlagsOfTypes(
61024
- types,
61025
- /*excludeKinds*/
61026
- 98304 /* Nullable */
61027
- );
61028
61033
  type.texts = texts;
61029
61034
  type.types = types;
61030
61035
  return type;
@@ -61339,7 +61344,7 @@ function createTypeChecker(host) {
61339
61344
  return !!(getGenericObjectFlags(type) & 8388608 /* IsGenericIndexType */);
61340
61345
  }
61341
61346
  function getGenericObjectFlags(type) {
61342
- if (type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */)) {
61347
+ if (type.flags & 3145728 /* UnionOrIntersection */) {
61343
61348
  if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) {
61344
61349
  type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | reduceLeft(type.types, (flags, t) => flags | getGenericObjectFlags(t), 0);
61345
61350
  }
@@ -61351,7 +61356,7 @@ function createTypeChecker(host) {
61351
61356
  }
61352
61357
  return type.objectFlags & 12582912 /* IsGenericType */;
61353
61358
  }
61354
- return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
61359
+ return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
61355
61360
  }
61356
61361
  function getSimplifiedType(type, writing) {
61357
61362
  return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
@@ -61515,7 +61520,7 @@ function createTypeChecker(host) {
61515
61520
  }
61516
61521
  function getActualTypeVariable(type) {
61517
61522
  if (type.flags & 33554432 /* Substitution */) {
61518
- return type.baseType;
61523
+ return getActualTypeVariable(type.baseType);
61519
61524
  }
61520
61525
  if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) {
61521
61526
  return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.0";
38
- version = `${versionMajorMinor}.0-insiders.20230218`;
38
+ version = `${versionMajorMinor}.0-insiders.20230219`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -58802,21 +58802,31 @@ ${lanes.join("\n")}
58802
58802
  }
58803
58803
  return type;
58804
58804
  function addSpans(texts2, types2) {
58805
+ const isTextsArray = isArray(texts2);
58805
58806
  for (let i = 0; i < types2.length; i++) {
58806
58807
  const t = types2[i];
58808
+ const addText = isTextsArray ? texts2[i + 1] : texts2;
58807
58809
  if (t.flags & (2944 /* Literal */ | 65536 /* Null */ | 32768 /* Undefined */)) {
58808
58810
  text += getTemplateStringForType(t) || "";
58809
- text += texts2[i + 1];
58811
+ text += addText;
58812
+ if (!isTextsArray)
58813
+ return true;
58810
58814
  } else if (t.flags & 134217728 /* TemplateLiteral */) {
58811
58815
  text += t.texts[0];
58812
58816
  if (!addSpans(t.texts, t.types))
58813
58817
  return false;
58814
- text += texts2[i + 1];
58815
- } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t) || t.flags & 2097152 /* Intersection */) {
58818
+ text += addText;
58819
+ if (!isTextsArray)
58820
+ return true;
58821
+ } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t)) {
58816
58822
  newTypes.push(t);
58817
58823
  newTexts.push(text);
58818
- text = texts2[i + 1];
58819
- } else {
58824
+ text = addText;
58825
+ } else if (t.flags & 2097152 /* Intersection */) {
58826
+ const added = addSpans(texts2[i + 1], t.types);
58827
+ if (!added)
58828
+ return false;
58829
+ } else if (isTextsArray) {
58820
58830
  return false;
58821
58831
  }
58822
58832
  }
@@ -58828,11 +58838,6 @@ ${lanes.join("\n")}
58828
58838
  }
58829
58839
  function createTemplateLiteralType(texts, types) {
58830
58840
  const type = createType(134217728 /* TemplateLiteral */);
58831
- type.objectFlags = getPropagatingFlagsOfTypes(
58832
- types,
58833
- /*excludeKinds*/
58834
- 98304 /* Nullable */
58835
- );
58836
58841
  type.texts = texts;
58837
58842
  type.types = types;
58838
58843
  return type;
@@ -59147,7 +59152,7 @@ ${lanes.join("\n")}
59147
59152
  return !!(getGenericObjectFlags(type) & 8388608 /* IsGenericIndexType */);
59148
59153
  }
59149
59154
  function getGenericObjectFlags(type) {
59150
- if (type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */)) {
59155
+ if (type.flags & 3145728 /* UnionOrIntersection */) {
59151
59156
  if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) {
59152
59157
  type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | reduceLeft(type.types, (flags, t) => flags | getGenericObjectFlags(t), 0);
59153
59158
  }
@@ -59159,7 +59164,7 @@ ${lanes.join("\n")}
59159
59164
  }
59160
59165
  return type.objectFlags & 12582912 /* IsGenericType */;
59161
59166
  }
59162
- return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
59167
+ return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
59163
59168
  }
59164
59169
  function getSimplifiedType(type, writing) {
59165
59170
  return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
@@ -59323,7 +59328,7 @@ ${lanes.join("\n")}
59323
59328
  }
59324
59329
  function getActualTypeVariable(type) {
59325
59330
  if (type.flags & 33554432 /* Substitution */) {
59326
- return type.baseType;
59331
+ return getActualTypeVariable(type.baseType);
59327
59332
  }
59328
59333
  if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) {
59329
59334
  return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));
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.0";
38
- version = `${versionMajorMinor}.0-insiders.20230218`;
38
+ version = `${versionMajorMinor}.0-insiders.20230219`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -58802,21 +58802,31 @@ ${lanes.join("\n")}
58802
58802
  }
58803
58803
  return type;
58804
58804
  function addSpans(texts2, types2) {
58805
+ const isTextsArray = isArray(texts2);
58805
58806
  for (let i = 0; i < types2.length; i++) {
58806
58807
  const t = types2[i];
58808
+ const addText = isTextsArray ? texts2[i + 1] : texts2;
58807
58809
  if (t.flags & (2944 /* Literal */ | 65536 /* Null */ | 32768 /* Undefined */)) {
58808
58810
  text += getTemplateStringForType(t) || "";
58809
- text += texts2[i + 1];
58811
+ text += addText;
58812
+ if (!isTextsArray)
58813
+ return true;
58810
58814
  } else if (t.flags & 134217728 /* TemplateLiteral */) {
58811
58815
  text += t.texts[0];
58812
58816
  if (!addSpans(t.texts, t.types))
58813
58817
  return false;
58814
- text += texts2[i + 1];
58815
- } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t) || t.flags & 2097152 /* Intersection */) {
58818
+ text += addText;
58819
+ if (!isTextsArray)
58820
+ return true;
58821
+ } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t)) {
58816
58822
  newTypes.push(t);
58817
58823
  newTexts.push(text);
58818
- text = texts2[i + 1];
58819
- } else {
58824
+ text = addText;
58825
+ } else if (t.flags & 2097152 /* Intersection */) {
58826
+ const added = addSpans(texts2[i + 1], t.types);
58827
+ if (!added)
58828
+ return false;
58829
+ } else if (isTextsArray) {
58820
58830
  return false;
58821
58831
  }
58822
58832
  }
@@ -58828,11 +58838,6 @@ ${lanes.join("\n")}
58828
58838
  }
58829
58839
  function createTemplateLiteralType(texts, types) {
58830
58840
  const type = createType(134217728 /* TemplateLiteral */);
58831
- type.objectFlags = getPropagatingFlagsOfTypes(
58832
- types,
58833
- /*excludeKinds*/
58834
- 98304 /* Nullable */
58835
- );
58836
58841
  type.texts = texts;
58837
58842
  type.types = types;
58838
58843
  return type;
@@ -59147,7 +59152,7 @@ ${lanes.join("\n")}
59147
59152
  return !!(getGenericObjectFlags(type) & 8388608 /* IsGenericIndexType */);
59148
59153
  }
59149
59154
  function getGenericObjectFlags(type) {
59150
- if (type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */)) {
59155
+ if (type.flags & 3145728 /* UnionOrIntersection */) {
59151
59156
  if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) {
59152
59157
  type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | reduceLeft(type.types, (flags, t) => flags | getGenericObjectFlags(t), 0);
59153
59158
  }
@@ -59159,7 +59164,7 @@ ${lanes.join("\n")}
59159
59164
  }
59160
59165
  return type.objectFlags & 12582912 /* IsGenericType */;
59161
59166
  }
59162
- return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
59167
+ return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
59163
59168
  }
59164
59169
  function getSimplifiedType(type, writing) {
59165
59170
  return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
@@ -59323,7 +59328,7 @@ ${lanes.join("\n")}
59323
59328
  }
59324
59329
  function getActualTypeVariable(type) {
59325
59330
  if (type.flags & 33554432 /* Substitution */) {
59326
- return type.baseType;
59331
+ return getActualTypeVariable(type.baseType);
59327
59332
  }
59328
59333
  if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) {
59329
59334
  return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));
@@ -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-insiders.20230218`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230219`;
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.0.0-pr-52836-22",
5
+ "version": "5.0.0-pr-52848-9",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [