typescript 5.1.0-dev.20230322 → 5.1.0-dev.20230323

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.
@@ -56,10 +56,10 @@ interface Array<T> {
56
56
  * @param target If target is negative, it is treated as length+target where length is the
57
57
  * length of the array.
58
58
  * @param start If start is negative, it is treated as length+start. If end is negative, it
59
- * is treated as length+end.
59
+ * is treated as length+end. If start is omitted, `0` is used.
60
60
  * @param end If not specified, length of the this object is used as its default value.
61
61
  */
62
- copyWithin(target: number, start: number, end?: number): this;
62
+ copyWithin(target: number, start?: number, end?: number): this;
63
63
  }
64
64
 
65
65
  interface ArrayConstructor {
@@ -165,10 +165,10 @@ interface BigInt64Array {
165
165
  * @param target If target is negative, it is treated as length+target where length is the
166
166
  * length of the array.
167
167
  * @param start If start is negative, it is treated as length+start. If end is negative, it
168
- * is treated as length+end.
168
+ * is treated as length+end. If start is omitted, `0` is used.
169
169
  * @param end If not specified, length of the this object is used as its default value.
170
170
  */
171
- copyWithin(target: number, start: number, end?: number): this;
171
+ copyWithin(target: number, start?: number, end?: number): this;
172
172
 
173
173
  /** Yields index, value pairs for every entry in the array. */
174
174
  entries(): IterableIterator<[number, bigint]>;
@@ -437,10 +437,10 @@ interface BigUint64Array {
437
437
  * @param target If target is negative, it is treated as length+target where length is the
438
438
  * length of the array.
439
439
  * @param start If start is negative, it is treated as length+start. If end is negative, it
440
- * is treated as length+end.
440
+ * is treated as length+end. If start is omitted, `0` is used.
441
441
  * @param end If not specified, length of the this object is used as its default value.
442
442
  */
443
- copyWithin(target: number, start: number, end?: number): this;
443
+ copyWithin(target: number, start?: number, end?: number): this;
444
444
 
445
445
  /** Yields index, value pairs for every entry in the array. */
446
446
  entries(): IterableIterator<[number, bigint]>;
package/lib/lib.es5.d.ts CHANGED
@@ -1867,10 +1867,10 @@ interface Int8Array {
1867
1867
  * @param target If target is negative, it is treated as length+target where length is the
1868
1868
  * length of the array.
1869
1869
  * @param start If start is negative, it is treated as length+start. If end is negative, it
1870
- * is treated as length+end.
1870
+ * is treated as length+end. If start is omitted, `0` is used.
1871
1871
  * @param end If not specified, length of the this object is used as its default value.
1872
1872
  */
1873
- copyWithin(target: number, start: number, end?: number): this;
1873
+ copyWithin(target: number, start?: number, end?: number): this;
1874
1874
 
1875
1875
  /**
1876
1876
  * Determines whether all the members of an array satisfy the specified test.
@@ -2149,10 +2149,10 @@ interface Uint8Array {
2149
2149
  * @param target If target is negative, it is treated as length+target where length is the
2150
2150
  * length of the array.
2151
2151
  * @param start If start is negative, it is treated as length+start. If end is negative, it
2152
- * is treated as length+end.
2152
+ * is treated as length+end. If start is omitted, `0` is used.
2153
2153
  * @param end If not specified, length of the this object is used as its default value.
2154
2154
  */
2155
- copyWithin(target: number, start: number, end?: number): this;
2155
+ copyWithin(target: number, start?: number, end?: number): this;
2156
2156
 
2157
2157
  /**
2158
2158
  * Determines whether all the members of an array satisfy the specified test.
@@ -2431,10 +2431,10 @@ interface Uint8ClampedArray {
2431
2431
  * @param target If target is negative, it is treated as length+target where length is the
2432
2432
  * length of the array.
2433
2433
  * @param start If start is negative, it is treated as length+start. If end is negative, it
2434
- * is treated as length+end.
2434
+ * is treated as length+end. If start is omitted, `0` is used.
2435
2435
  * @param end If not specified, length of the this object is used as its default value.
2436
2436
  */
2437
- copyWithin(target: number, start: number, end?: number): this;
2437
+ copyWithin(target: number, start?: number, end?: number): this;
2438
2438
 
2439
2439
  /**
2440
2440
  * Determines whether all the members of an array satisfy the specified test.
@@ -2712,10 +2712,10 @@ interface Int16Array {
2712
2712
  * @param target If target is negative, it is treated as length+target where length is the
2713
2713
  * length of the array.
2714
2714
  * @param start If start is negative, it is treated as length+start. If end is negative, it
2715
- * is treated as length+end.
2715
+ * is treated as length+end. If start is omitted, `0` is used.
2716
2716
  * @param end If not specified, length of the this object is used as its default value.
2717
2717
  */
2718
- copyWithin(target: number, start: number, end?: number): this;
2718
+ copyWithin(target: number, start?: number, end?: number): this;
2719
2719
 
2720
2720
  /**
2721
2721
  * Determines whether all the members of an array satisfy the specified test.
@@ -2994,10 +2994,10 @@ interface Uint16Array {
2994
2994
  * @param target If target is negative, it is treated as length+target where length is the
2995
2995
  * length of the array.
2996
2996
  * @param start If start is negative, it is treated as length+start. If end is negative, it
2997
- * is treated as length+end.
2997
+ * is treated as length+end. If start is omitted, `0` is used.
2998
2998
  * @param end If not specified, length of the this object is used as its default value.
2999
2999
  */
3000
- copyWithin(target: number, start: number, end?: number): this;
3000
+ copyWithin(target: number, start?: number, end?: number): this;
3001
3001
 
3002
3002
  /**
3003
3003
  * Determines whether all the members of an array satisfy the specified test.
@@ -3276,10 +3276,10 @@ interface Int32Array {
3276
3276
  * @param target If target is negative, it is treated as length+target where length is the
3277
3277
  * length of the array.
3278
3278
  * @param start If start is negative, it is treated as length+start. If end is negative, it
3279
- * is treated as length+end.
3279
+ * is treated as length+end. If start is omitted, `0` is used.
3280
3280
  * @param end If not specified, length of the this object is used as its default value.
3281
3281
  */
3282
- copyWithin(target: number, start: number, end?: number): this;
3282
+ copyWithin(target: number, start?: number, end?: number): this;
3283
3283
 
3284
3284
  /**
3285
3285
  * Determines whether all the members of an array satisfy the specified test.
@@ -3558,10 +3558,10 @@ interface Uint32Array {
3558
3558
  * @param target If target is negative, it is treated as length+target where length is the
3559
3559
  * length of the array.
3560
3560
  * @param start If start is negative, it is treated as length+start. If end is negative, it
3561
- * is treated as length+end.
3561
+ * is treated as length+end. If start is omitted, `0` is used.
3562
3562
  * @param end If not specified, length of the this object is used as its default value.
3563
3563
  */
3564
- copyWithin(target: number, start: number, end?: number): this;
3564
+ copyWithin(target: number, start?: number, end?: number): this;
3565
3565
 
3566
3566
  /**
3567
3567
  * Determines whether all the members of an array satisfy the specified test.
@@ -3839,10 +3839,10 @@ interface Float32Array {
3839
3839
  * @param target If target is negative, it is treated as length+target where length is the
3840
3840
  * length of the array.
3841
3841
  * @param start If start is negative, it is treated as length+start. If end is negative, it
3842
- * is treated as length+end.
3842
+ * is treated as length+end. If start is omitted, `0` is used.
3843
3843
  * @param end If not specified, length of the this object is used as its default value.
3844
3844
  */
3845
- copyWithin(target: number, start: number, end?: number): this;
3845
+ copyWithin(target: number, start?: number, end?: number): this;
3846
3846
 
3847
3847
  /**
3848
3848
  * Determines whether all the members of an array satisfy the specified test.
@@ -4122,10 +4122,10 @@ interface Float64Array {
4122
4122
  * @param target If target is negative, it is treated as length+target where length is the
4123
4123
  * length of the array.
4124
4124
  * @param start If start is negative, it is treated as length+start. If end is negative, it
4125
- * is treated as length+end.
4125
+ * is treated as length+end. If start is omitted, `0` is used.
4126
4126
  * @param end If not specified, length of the this object is used as its default value.
4127
4127
  */
4128
- copyWithin(target: number, start: number, end?: number): this;
4128
+ copyWithin(target: number, start?: number, end?: number): this;
4129
4129
 
4130
4130
  /**
4131
4131
  * Determines whether all the members of an array satisfy the specified test.
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.1";
21
- var version = `${versionMajorMinor}.0-dev.20230322`;
21
+ var version = `${versionMajorMinor}.0-dev.20230323`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -12551,9 +12551,8 @@ function isPartOfTypeNode(node) {
12551
12551
  return node === parent.type;
12552
12552
  case 211 /* CallExpression */:
12553
12553
  case 212 /* NewExpression */:
12554
- return contains(parent.typeArguments, node);
12555
12554
  case 213 /* TaggedTemplateExpression */:
12556
- return false;
12555
+ return contains(parent.typeArguments, node);
12557
12556
  }
12558
12557
  }
12559
12558
  }
@@ -34068,6 +34067,7 @@ var commandOptionsWithoutBuild = [
34068
34067
  name: "allowImportingTsExtensions",
34069
34068
  type: "boolean",
34070
34069
  affectsSemanticDiagnostics: true,
34070
+ affectsBuildInfo: true,
34071
34071
  category: Diagnostics.Modules,
34072
34072
  description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
34073
34073
  defaultValueDescription: false
@@ -37317,7 +37317,7 @@ function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, hos
37317
37317
  }
37318
37318
  function nodeNextJsonConfigResolver(moduleName, containingFile, host) {
37319
37319
  return nodeModuleNameResolverWorker(
37320
- 8 /* Exports */,
37320
+ 30 /* NodeNextDefault */,
37321
37321
  moduleName,
37322
37322
  getDirectoryPath(containingFile),
37323
37323
  { moduleResolution: 99 /* NodeNext */ },
package/lib/tsserver.js CHANGED
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(server_exports);
2286
2286
 
2287
2287
  // src/compiler/corePublic.ts
2288
2288
  var versionMajorMinor = "5.1";
2289
- var version = `${versionMajorMinor}.0-dev.20230322`;
2289
+ var version = `${versionMajorMinor}.0-dev.20230323`;
2290
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2291
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2292
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -16337,9 +16337,8 @@ function isPartOfTypeNode(node) {
16337
16337
  return node === parent2.type;
16338
16338
  case 211 /* CallExpression */:
16339
16339
  case 212 /* NewExpression */:
16340
- return contains(parent2.typeArguments, node);
16341
16340
  case 213 /* TaggedTemplateExpression */:
16342
- return false;
16341
+ return contains(parent2.typeArguments, node);
16343
16342
  }
16344
16343
  }
16345
16344
  }
@@ -38429,6 +38428,7 @@ var commandOptionsWithoutBuild = [
38429
38428
  name: "allowImportingTsExtensions",
38430
38429
  type: "boolean",
38431
38430
  affectsSemanticDiagnostics: true,
38431
+ affectsBuildInfo: true,
38432
38432
  category: Diagnostics.Modules,
38433
38433
  description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
38434
38434
  defaultValueDescription: false
@@ -41789,7 +41789,7 @@ function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, hos
41789
41789
  }
41790
41790
  function nodeNextJsonConfigResolver(moduleName, containingFile, host) {
41791
41791
  return nodeModuleNameResolverWorker(
41792
- 8 /* Exports */,
41792
+ 30 /* NodeNextDefault */,
41793
41793
  moduleName,
41794
41794
  getDirectoryPath(containingFile),
41795
41795
  { moduleResolution: 99 /* NodeNext */ },
@@ -149807,7 +149807,7 @@ function completionEntryDataToSymbolOriginInfo(data, completionName, moduleSymbo
149807
149807
  }
149808
149808
  function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences) {
149809
149809
  const replacementSpan = importStatementCompletion.replacementSpan;
149810
- const quotedModuleSpecifier = quote(sourceFile, preferences, escapeSnippetText(origin.moduleSpecifier));
149810
+ const quotedModuleSpecifier = escapeSnippetText(quote(sourceFile, preferences, origin.moduleSpecifier));
149811
149811
  const exportKind = origin.isDefaultExport ? 1 /* Default */ : origin.exportName === "export=" /* ExportEquals */ ? 2 /* ExportEquals */ : 0 /* Named */;
149812
149812
  const tabStop = preferences.includeCompletionsWithSnippetText ? "$1" : "";
149813
149813
  const importKind = ts_codefix_exports.getImportKind(
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.1";
38
- version = `${versionMajorMinor}.0-dev.20230322`;
38
+ version = `${versionMajorMinor}.0-dev.20230323`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -14159,9 +14159,8 @@ ${lanes.join("\n")}
14159
14159
  return node === parent2.type;
14160
14160
  case 211 /* CallExpression */:
14161
14161
  case 212 /* NewExpression */:
14162
- return contains(parent2.typeArguments, node);
14163
14162
  case 213 /* TaggedTemplateExpression */:
14164
- return false;
14163
+ return contains(parent2.typeArguments, node);
14165
14164
  }
14166
14165
  }
14167
14166
  }
@@ -37952,6 +37951,7 @@ ${lanes.join("\n")}
37952
37951
  name: "allowImportingTsExtensions",
37953
37952
  type: "boolean",
37954
37953
  affectsSemanticDiagnostics: true,
37954
+ affectsBuildInfo: true,
37955
37955
  category: Diagnostics.Modules,
37956
37956
  description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
37957
37957
  defaultValueDescription: false
@@ -39675,7 +39675,7 @@ ${lanes.join("\n")}
39675
39675
  }
39676
39676
  function nodeNextJsonConfigResolver(moduleName, containingFile, host) {
39677
39677
  return nodeModuleNameResolverWorker(
39678
- 8 /* Exports */,
39678
+ 30 /* NodeNextDefault */,
39679
39679
  moduleName,
39680
39680
  getDirectoryPath(containingFile),
39681
39681
  { moduleResolution: 99 /* NodeNext */ },
@@ -148861,7 +148861,7 @@ ${lanes.join("\n")}
148861
148861
  }
148862
148862
  function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences) {
148863
148863
  const replacementSpan = importStatementCompletion.replacementSpan;
148864
- const quotedModuleSpecifier = quote(sourceFile, preferences, escapeSnippetText(origin.moduleSpecifier));
148864
+ const quotedModuleSpecifier = escapeSnippetText(quote(sourceFile, preferences, origin.moduleSpecifier));
148865
148865
  const exportKind = origin.isDefaultExport ? 1 /* Default */ : origin.exportName === "export=" /* ExportEquals */ ? 2 /* ExportEquals */ : 0 /* Named */;
148866
148866
  const tabStop = preferences.includeCompletionsWithSnippetText ? "$1" : "";
148867
148867
  const importKind = ts_codefix_exports.getImportKind(
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.1";
38
- version = `${versionMajorMinor}.0-dev.20230322`;
38
+ version = `${versionMajorMinor}.0-dev.20230323`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -14159,9 +14159,8 @@ ${lanes.join("\n")}
14159
14159
  return node === parent2.type;
14160
14160
  case 211 /* CallExpression */:
14161
14161
  case 212 /* NewExpression */:
14162
- return contains(parent2.typeArguments, node);
14163
14162
  case 213 /* TaggedTemplateExpression */:
14164
- return false;
14163
+ return contains(parent2.typeArguments, node);
14165
14164
  }
14166
14165
  }
14167
14166
  }
@@ -37952,6 +37951,7 @@ ${lanes.join("\n")}
37952
37951
  name: "allowImportingTsExtensions",
37953
37952
  type: "boolean",
37954
37953
  affectsSemanticDiagnostics: true,
37954
+ affectsBuildInfo: true,
37955
37955
  category: Diagnostics.Modules,
37956
37956
  description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
37957
37957
  defaultValueDescription: false
@@ -39675,7 +39675,7 @@ ${lanes.join("\n")}
39675
39675
  }
39676
39676
  function nodeNextJsonConfigResolver(moduleName, containingFile, host) {
39677
39677
  return nodeModuleNameResolverWorker(
39678
- 8 /* Exports */,
39678
+ 30 /* NodeNextDefault */,
39679
39679
  moduleName,
39680
39680
  getDirectoryPath(containingFile),
39681
39681
  { moduleResolution: 99 /* NodeNext */ },
@@ -148875,7 +148875,7 @@ ${lanes.join("\n")}
148875
148875
  }
148876
148876
  function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences) {
148877
148877
  const replacementSpan = importStatementCompletion.replacementSpan;
148878
- const quotedModuleSpecifier = quote(sourceFile, preferences, escapeSnippetText(origin.moduleSpecifier));
148878
+ const quotedModuleSpecifier = escapeSnippetText(quote(sourceFile, preferences, origin.moduleSpecifier));
148879
148879
  const exportKind = origin.isDefaultExport ? 1 /* Default */ : origin.exportName === "export=" /* ExportEquals */ ? 2 /* ExportEquals */ : 0 /* Named */;
148880
148880
  const tabStop = preferences.includeCompletionsWithSnippetText ? "$1" : "";
148881
148881
  const importKind = ts_codefix_exports.getImportKind(
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.1";
57
- var version = `${versionMajorMinor}.0-dev.20230322`;
57
+ var version = `${versionMajorMinor}.0-dev.20230323`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -26124,6 +26124,7 @@ var commandOptionsWithoutBuild = [
26124
26124
  name: "allowImportingTsExtensions",
26125
26125
  type: "boolean",
26126
26126
  affectsSemanticDiagnostics: true,
26127
+ affectsBuildInfo: true,
26127
26128
  category: Diagnostics.Modules,
26128
26129
  description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
26129
26130
  defaultValueDescription: false
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": "5.1.0-dev.20230322",
5
+ "version": "5.1.0-dev.20230323",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -113,5 +113,5 @@
113
113
  "node": "14.21.1",
114
114
  "npm": "8.19.3"
115
115
  },
116
- "gitHead": "1df5717b120cddd325deab8b0f2b2c3eecaf2b01"
116
+ "gitHead": "7009c76d00218195c905bb0231033e92cc87fbcd"
117
117
  }