@typescript-deploys/pr-build 6.0.0-pr-63084-6 → 6.0.0-pr-63239-2
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 +167 -79
- package/lib/lib.dom.d.ts +8170 -3816
- package/lib/lib.es2015.collection.d.ts +6 -1
- package/lib/lib.es2015.iterable.d.ts +1 -1
- package/lib/lib.es2020.bigint.d.ts +4 -4
- package/lib/lib.es2020.symbol.wellknown.d.ts +1 -1
- package/lib/lib.es2022.regexp.d.ts +1 -1
- package/lib/lib.es2023.intl.d.ts +9 -1
- package/lib/lib.es2025.collection.d.ts +94 -0
- package/lib/lib.es2025.d.ts +23 -0
- package/lib/lib.es2025.full.d.ts +22 -0
- package/lib/lib.es2025.intl.d.ts +200 -0
- package/lib/lib.es2025.regexp.d.ts +30 -0
- package/lib/lib.es5.d.ts +21 -21
- package/lib/lib.esnext.collection.d.ts +19 -66
- package/lib/lib.esnext.d.ts +4 -5
- package/lib/lib.esnext.date.d.ts +21 -0
- package/lib/lib.esnext.intl.d.ts +89 -1
- package/lib/lib.esnext.temporal.d.ts +485 -0
- package/lib/lib.webworker.d.ts +2659 -821
- package/lib/typescript.d.ts +6 -4
- package/lib/typescript.js +186 -85
- package/package.json +17 -18
- /package/lib/{lib.esnext.float16.d.ts → lib.es2025.float16.d.ts} +0 -0
- /package/lib/{lib.esnext.iterator.d.ts → lib.es2025.iterator.d.ts} +0 -0
- /package/lib/{lib.esnext.promise.d.ts → lib.es2025.promise.d.ts} +0 -0
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 = "6.0";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20260311`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6813,6 +6813,7 @@ var Diagnostics = {
|
|
|
6813
6813
|
Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
|
|
6814
6814
|
This_expression_is_never_nullish: diag(2881, 1 /* Error */, "This_expression_is_never_nullish_2881", "This expression is never nullish."),
|
|
6815
6815
|
Cannot_find_module_or_type_declarations_for_side_effect_import_of_0: diag(2882, 1 /* Error */, "Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882", "Cannot find module or type declarations for side-effect import of '{0}'."),
|
|
6816
|
+
The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_type_annotation_is_necessary: diag(2883, 1 /* Error */, "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_2883", "The inferred type of '{0}' cannot be named without a reference to '{2}' from '{1}'. This is likely not portable. A type annotation is necessary."),
|
|
6816
6817
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
6817
6818
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
6818
6819
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -7520,7 +7521,7 @@ var Diagnostics = {
|
|
|
7520
7521
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
|
7521
7522
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
|
7522
7523
|
default_Colon: diag(6903, 3 /* Message */, "default_Colon_6903", "default:"),
|
|
7523
|
-
|
|
7524
|
+
true_unless_strict_is_false: diag(6905, 3 /* Message */, "true_unless_strict_is_false_6905", "`true`, unless `strict` is `false`"),
|
|
7524
7525
|
false_unless_composite_is_set: diag(6906, 3 /* Message */, "false_unless_composite_is_set_6906", "`false`, unless `composite` is set"),
|
|
7525
7526
|
node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified: diag(6907, 3 /* Message */, "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907", '`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),
|
|
7526
7527
|
if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: diag(6908, 3 /* Message */, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'),
|
|
@@ -11238,6 +11239,7 @@ function sortAndDeduplicateDiagnostics(diagnostics) {
|
|
|
11238
11239
|
}
|
|
11239
11240
|
var targetToLibMap = /* @__PURE__ */ new Map([
|
|
11240
11241
|
[99 /* ESNext */, "lib.esnext.full.d.ts"],
|
|
11242
|
+
[12 /* ES2025 */, "lib.es2025.full.d.ts"],
|
|
11241
11243
|
[11 /* ES2024 */, "lib.es2024.full.d.ts"],
|
|
11242
11244
|
[10 /* ES2023 */, "lib.es2023.full.d.ts"],
|
|
11243
11245
|
[9 /* ES2022 */, "lib.es2022.full.d.ts"],
|
|
@@ -11254,6 +11256,7 @@ function getDefaultLibFileName(options) {
|
|
|
11254
11256
|
const target = getEmitScriptTarget(options);
|
|
11255
11257
|
switch (target) {
|
|
11256
11258
|
case 99 /* ESNext */:
|
|
11259
|
+
case 12 /* ES2025 */:
|
|
11257
11260
|
case 11 /* ES2024 */:
|
|
11258
11261
|
case 10 /* ES2023 */:
|
|
11259
11262
|
case 9 /* ES2022 */:
|
|
@@ -13161,6 +13164,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13161
13164
|
"unicodeSets"
|
|
13162
13165
|
]
|
|
13163
13166
|
})),
|
|
13167
|
+
RegExpConstructor: new Map(Object.entries({
|
|
13168
|
+
es2025: [
|
|
13169
|
+
"escape"
|
|
13170
|
+
]
|
|
13171
|
+
})),
|
|
13164
13172
|
Reflect: new Map(Object.entries({
|
|
13165
13173
|
es2015: [
|
|
13166
13174
|
"apply",
|
|
@@ -13240,7 +13248,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13240
13248
|
"fround",
|
|
13241
13249
|
"cbrt"
|
|
13242
13250
|
],
|
|
13243
|
-
|
|
13251
|
+
es2025: [
|
|
13244
13252
|
"f16round"
|
|
13245
13253
|
]
|
|
13246
13254
|
})),
|
|
@@ -13249,6 +13257,10 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13249
13257
|
"entries",
|
|
13250
13258
|
"keys",
|
|
13251
13259
|
"values"
|
|
13260
|
+
],
|
|
13261
|
+
esnext: [
|
|
13262
|
+
"getOrInsert",
|
|
13263
|
+
"getOrInsertComputed"
|
|
13252
13264
|
]
|
|
13253
13265
|
})),
|
|
13254
13266
|
MapConstructor: new Map(Object.entries({
|
|
@@ -13262,7 +13274,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13262
13274
|
"keys",
|
|
13263
13275
|
"values"
|
|
13264
13276
|
],
|
|
13265
|
-
|
|
13277
|
+
es2025: [
|
|
13266
13278
|
"union",
|
|
13267
13279
|
"intersection",
|
|
13268
13280
|
"difference",
|
|
@@ -13287,6 +13299,9 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13287
13299
|
],
|
|
13288
13300
|
es2024: [
|
|
13289
13301
|
"withResolvers"
|
|
13302
|
+
],
|
|
13303
|
+
es2025: [
|
|
13304
|
+
"try"
|
|
13290
13305
|
]
|
|
13291
13306
|
})),
|
|
13292
13307
|
Symbol: new Map(Object.entries({
|
|
@@ -13303,6 +13318,10 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13303
13318
|
"entries",
|
|
13304
13319
|
"keys",
|
|
13305
13320
|
"values"
|
|
13321
|
+
],
|
|
13322
|
+
esnext: [
|
|
13323
|
+
"getOrInsert",
|
|
13324
|
+
"getOrInsertComputed"
|
|
13306
13325
|
]
|
|
13307
13326
|
})),
|
|
13308
13327
|
WeakSet: new Map(Object.entries({
|
|
@@ -13388,6 +13407,21 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13388
13407
|
Intl: new Map(Object.entries({
|
|
13389
13408
|
es2018: [
|
|
13390
13409
|
"PluralRules"
|
|
13410
|
+
],
|
|
13411
|
+
es2020: [
|
|
13412
|
+
"RelativeTimeFormat",
|
|
13413
|
+
"Locale",
|
|
13414
|
+
"DisplayNames"
|
|
13415
|
+
],
|
|
13416
|
+
es2021: [
|
|
13417
|
+
"ListFormat",
|
|
13418
|
+
"DateTimeFormat"
|
|
13419
|
+
],
|
|
13420
|
+
es2022: [
|
|
13421
|
+
"Segmenter"
|
|
13422
|
+
],
|
|
13423
|
+
es2025: [
|
|
13424
|
+
"DurationFormat"
|
|
13391
13425
|
]
|
|
13392
13426
|
})),
|
|
13393
13427
|
NumberFormat: new Map(Object.entries({
|
|
@@ -13412,7 +13446,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13412
13446
|
"getBigInt64",
|
|
13413
13447
|
"getBigUint64"
|
|
13414
13448
|
],
|
|
13415
|
-
|
|
13449
|
+
es2025: [
|
|
13416
13450
|
"setFloat16",
|
|
13417
13451
|
"getFloat16"
|
|
13418
13452
|
]
|
|
@@ -13525,7 +13559,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13525
13559
|
]
|
|
13526
13560
|
})),
|
|
13527
13561
|
Float16Array: new Map(Object.entries({
|
|
13528
|
-
|
|
13562
|
+
es2025: emptyArray
|
|
13529
13563
|
})),
|
|
13530
13564
|
Float32Array: new Map(Object.entries({
|
|
13531
13565
|
es2022: [
|
|
@@ -13586,11 +13620,27 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13586
13620
|
"cause"
|
|
13587
13621
|
]
|
|
13588
13622
|
})),
|
|
13623
|
+
ErrorConstructor: new Map(Object.entries({
|
|
13624
|
+
esnext: [
|
|
13625
|
+
"isError"
|
|
13626
|
+
]
|
|
13627
|
+
})),
|
|
13589
13628
|
Uint8ArrayConstructor: new Map(Object.entries({
|
|
13590
13629
|
esnext: [
|
|
13591
13630
|
"fromBase64",
|
|
13592
13631
|
"fromHex"
|
|
13593
13632
|
]
|
|
13633
|
+
})),
|
|
13634
|
+
Date: new Map(Object.entries({
|
|
13635
|
+
esnext: [
|
|
13636
|
+
"toTemporalInstant"
|
|
13637
|
+
]
|
|
13638
|
+
})),
|
|
13639
|
+
DisposableStack: new Map(Object.entries({
|
|
13640
|
+
esnext: emptyArray
|
|
13641
|
+
})),
|
|
13642
|
+
AsyncDisposableStack: new Map(Object.entries({
|
|
13643
|
+
esnext: emptyArray
|
|
13594
13644
|
}))
|
|
13595
13645
|
}))
|
|
13596
13646
|
);
|
|
@@ -17945,6 +17995,9 @@ function importSyntaxAffectsModuleResolution(options) {
|
|
|
17945
17995
|
const moduleResolution = getEmitModuleResolutionKind(options);
|
|
17946
17996
|
return 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || getResolvePackageJsonExports(options) || getResolvePackageJsonImports(options);
|
|
17947
17997
|
}
|
|
17998
|
+
function usesWildcardTypes(options) {
|
|
17999
|
+
return some(options.types, (t) => t === "*");
|
|
18000
|
+
}
|
|
17948
18001
|
function createComputedCompilerOptions(options) {
|
|
17949
18002
|
return options;
|
|
17950
18003
|
}
|
|
@@ -17959,7 +18012,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
17959
18012
|
dependencies: [],
|
|
17960
18013
|
computeValue: (compilerOptions) => {
|
|
17961
18014
|
const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target;
|
|
17962
|
-
return target ??
|
|
18015
|
+
return target ?? 12 /* LatestStandard */;
|
|
17963
18016
|
}
|
|
17964
18017
|
},
|
|
17965
18018
|
module: {
|
|
@@ -24159,7 +24212,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
24159
24212
|
node.path = "";
|
|
24160
24213
|
node.resolvedPath = "";
|
|
24161
24214
|
node.originalFileName = "";
|
|
24162
|
-
node.languageVersion =
|
|
24215
|
+
node.languageVersion = 12 /* LatestStandard */;
|
|
24163
24216
|
node.languageVariant = 0;
|
|
24164
24217
|
node.scriptKind = 0;
|
|
24165
24218
|
node.isDeclarationFile = false;
|
|
@@ -36385,6 +36438,7 @@ var libEntries = [
|
|
|
36385
36438
|
["es2022", "lib.es2022.d.ts"],
|
|
36386
36439
|
["es2023", "lib.es2023.d.ts"],
|
|
36387
36440
|
["es2024", "lib.es2024.d.ts"],
|
|
36441
|
+
["es2025", "lib.es2025.d.ts"],
|
|
36388
36442
|
["esnext", "lib.esnext.d.ts"],
|
|
36389
36443
|
// Host only
|
|
36390
36444
|
["dom", "lib.dom.d.ts"],
|
|
@@ -36395,7 +36449,7 @@ var libEntries = [
|
|
|
36395
36449
|
["webworker.iterable", "lib.webworker.iterable.d.ts"],
|
|
36396
36450
|
["webworker.asynciterable", "lib.webworker.asynciterable.d.ts"],
|
|
36397
36451
|
["scripthost", "lib.scripthost.d.ts"],
|
|
36398
|
-
// ES2015
|
|
36452
|
+
// ES2015 and later By-feature options
|
|
36399
36453
|
["es2015.core", "lib.es2015.core.d.ts"],
|
|
36400
36454
|
["es2015.collection", "lib.es2015.collection.d.ts"],
|
|
36401
36455
|
["es2015.generator", "lib.es2015.generator.d.ts"],
|
|
@@ -36452,27 +36506,35 @@ var libEntries = [
|
|
|
36452
36506
|
["es2024.regexp", "lib.es2024.regexp.d.ts"],
|
|
36453
36507
|
["es2024.sharedmemory", "lib.es2024.sharedmemory.d.ts"],
|
|
36454
36508
|
["es2024.string", "lib.es2024.string.d.ts"],
|
|
36455
|
-
["
|
|
36456
|
-
["
|
|
36457
|
-
["
|
|
36509
|
+
["es2025.collection", "lib.es2025.collection.d.ts"],
|
|
36510
|
+
["es2025.float16", "lib.es2025.float16.d.ts"],
|
|
36511
|
+
["es2025.intl", "lib.es2025.intl.d.ts"],
|
|
36512
|
+
["es2025.iterator", "lib.es2025.iterator.d.ts"],
|
|
36513
|
+
["es2025.promise", "lib.es2025.promise.d.ts"],
|
|
36514
|
+
["es2025.regexp", "lib.es2025.regexp.d.ts"],
|
|
36515
|
+
// Fallback for backward compatibility
|
|
36458
36516
|
["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"],
|
|
36459
|
-
["esnext.
|
|
36460
|
-
["esnext.disposable", "lib.esnext.disposable.d.ts"],
|
|
36517
|
+
["esnext.symbol", "lib.es2019.symbol.d.ts"],
|
|
36461
36518
|
["esnext.bigint", "lib.es2020.bigint.d.ts"],
|
|
36462
|
-
["esnext.string", "lib.es2022.string.d.ts"],
|
|
36463
|
-
["esnext.promise", "lib.es2024.promise.d.ts"],
|
|
36464
36519
|
["esnext.weakref", "lib.es2021.weakref.d.ts"],
|
|
36465
|
-
["esnext.decorators", "lib.esnext.decorators.d.ts"],
|
|
36466
36520
|
["esnext.object", "lib.es2024.object.d.ts"],
|
|
36467
|
-
["esnext.array", "lib.esnext.array.d.ts"],
|
|
36468
36521
|
["esnext.regexp", "lib.es2024.regexp.d.ts"],
|
|
36469
36522
|
["esnext.string", "lib.es2024.string.d.ts"],
|
|
36470
|
-
["esnext.
|
|
36471
|
-
["esnext.
|
|
36472
|
-
["esnext.
|
|
36473
|
-
|
|
36523
|
+
["esnext.float16", "lib.es2025.float16.d.ts"],
|
|
36524
|
+
["esnext.iterator", "lib.es2025.iterator.d.ts"],
|
|
36525
|
+
["esnext.promise", "lib.es2025.promise.d.ts"],
|
|
36526
|
+
// ESNext By-feature options
|
|
36527
|
+
["esnext.array", "lib.esnext.array.d.ts"],
|
|
36528
|
+
["esnext.collection", "lib.esnext.collection.d.ts"],
|
|
36529
|
+
["esnext.date", "lib.esnext.date.d.ts"],
|
|
36530
|
+
["esnext.decorators", "lib.esnext.decorators.d.ts"],
|
|
36531
|
+
["esnext.disposable", "lib.esnext.disposable.d.ts"],
|
|
36474
36532
|
["esnext.error", "lib.esnext.error.d.ts"],
|
|
36533
|
+
["esnext.intl", "lib.esnext.intl.d.ts"],
|
|
36475
36534
|
["esnext.sharedmemory", "lib.esnext.sharedmemory.d.ts"],
|
|
36535
|
+
["esnext.temporal", "lib.esnext.temporal.d.ts"],
|
|
36536
|
+
["esnext.typedarrays", "lib.esnext.typedarrays.d.ts"],
|
|
36537
|
+
// Decorators
|
|
36476
36538
|
["decorators", "lib.decorators.d.ts"],
|
|
36477
36539
|
["decorators.legacy", "lib.decorators.legacy.d.ts"]
|
|
36478
36540
|
];
|
|
@@ -36771,6 +36833,7 @@ var targetOptionDeclaration = {
|
|
|
36771
36833
|
es2022: 9 /* ES2022 */,
|
|
36772
36834
|
es2023: 10 /* ES2023 */,
|
|
36773
36835
|
es2024: 11 /* ES2024 */,
|
|
36836
|
+
es2025: 12 /* ES2025 */,
|
|
36774
36837
|
esnext: 99 /* ESNext */
|
|
36775
36838
|
})),
|
|
36776
36839
|
affectsSourceFile: true,
|
|
@@ -36782,7 +36845,7 @@ var targetOptionDeclaration = {
|
|
|
36782
36845
|
showInSimplifiedHelpView: true,
|
|
36783
36846
|
category: Diagnostics.Language_and_Environment,
|
|
36784
36847
|
description: Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,
|
|
36785
|
-
defaultValueDescription:
|
|
36848
|
+
defaultValueDescription: 12 /* LatestStandard */
|
|
36786
36849
|
};
|
|
36787
36850
|
var moduleOptionDeclaration = {
|
|
36788
36851
|
name: "module",
|
|
@@ -37102,7 +37165,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37102
37165
|
strictFlag: true,
|
|
37103
37166
|
category: Diagnostics.Type_Checking,
|
|
37104
37167
|
description: Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,
|
|
37105
|
-
defaultValueDescription: Diagnostics.
|
|
37168
|
+
defaultValueDescription: Diagnostics.true_unless_strict_is_false
|
|
37106
37169
|
},
|
|
37107
37170
|
{
|
|
37108
37171
|
name: "strictNullChecks",
|
|
@@ -37112,7 +37175,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37112
37175
|
strictFlag: true,
|
|
37113
37176
|
category: Diagnostics.Type_Checking,
|
|
37114
37177
|
description: Diagnostics.When_type_checking_take_into_account_null_and_undefined,
|
|
37115
|
-
defaultValueDescription: Diagnostics.
|
|
37178
|
+
defaultValueDescription: Diagnostics.true_unless_strict_is_false
|
|
37116
37179
|
},
|
|
37117
37180
|
{
|
|
37118
37181
|
name: "strictFunctionTypes",
|
|
@@ -37122,7 +37185,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37122
37185
|
strictFlag: true,
|
|
37123
37186
|
category: Diagnostics.Type_Checking,
|
|
37124
37187
|
description: Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,
|
|
37125
|
-
defaultValueDescription: Diagnostics.
|
|
37188
|
+
defaultValueDescription: Diagnostics.true_unless_strict_is_false
|
|
37126
37189
|
},
|
|
37127
37190
|
{
|
|
37128
37191
|
name: "strictBindCallApply",
|
|
@@ -37132,7 +37195,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37132
37195
|
strictFlag: true,
|
|
37133
37196
|
category: Diagnostics.Type_Checking,
|
|
37134
37197
|
description: Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,
|
|
37135
|
-
defaultValueDescription: Diagnostics.
|
|
37198
|
+
defaultValueDescription: Diagnostics.true_unless_strict_is_false
|
|
37136
37199
|
},
|
|
37137
37200
|
{
|
|
37138
37201
|
name: "strictPropertyInitialization",
|
|
@@ -37142,7 +37205,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37142
37205
|
strictFlag: true,
|
|
37143
37206
|
category: Diagnostics.Type_Checking,
|
|
37144
37207
|
description: Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,
|
|
37145
|
-
defaultValueDescription: Diagnostics.
|
|
37208
|
+
defaultValueDescription: Diagnostics.true_unless_strict_is_false
|
|
37146
37209
|
},
|
|
37147
37210
|
{
|
|
37148
37211
|
name: "strictBuiltinIteratorReturn",
|
|
@@ -37152,13 +37215,14 @@ var commandOptionsWithoutBuild = [
|
|
|
37152
37215
|
strictFlag: true,
|
|
37153
37216
|
category: Diagnostics.Type_Checking,
|
|
37154
37217
|
description: Diagnostics.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,
|
|
37155
|
-
defaultValueDescription: Diagnostics.
|
|
37218
|
+
defaultValueDescription: Diagnostics.true_unless_strict_is_false
|
|
37156
37219
|
},
|
|
37157
37220
|
{
|
|
37158
37221
|
name: "stableTypeOrdering",
|
|
37159
37222
|
type: "boolean",
|
|
37160
37223
|
affectsSemanticDiagnostics: true,
|
|
37161
37224
|
affectsBuildInfo: true,
|
|
37225
|
+
showInHelp: false,
|
|
37162
37226
|
category: Diagnostics.Type_Checking,
|
|
37163
37227
|
description: Diagnostics.Ensure_types_are_ordered_stably_and_deterministically_across_compilations,
|
|
37164
37228
|
defaultValueDescription: false
|
|
@@ -37171,7 +37235,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37171
37235
|
strictFlag: true,
|
|
37172
37236
|
category: Diagnostics.Type_Checking,
|
|
37173
37237
|
description: Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,
|
|
37174
|
-
defaultValueDescription: Diagnostics.
|
|
37238
|
+
defaultValueDescription: Diagnostics.true_unless_strict_is_false
|
|
37175
37239
|
},
|
|
37176
37240
|
{
|
|
37177
37241
|
name: "useUnknownInCatchVariables",
|
|
@@ -37181,7 +37245,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37181
37245
|
strictFlag: true,
|
|
37182
37246
|
category: Diagnostics.Type_Checking,
|
|
37183
37247
|
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
37184
|
-
defaultValueDescription: Diagnostics.
|
|
37248
|
+
defaultValueDescription: Diagnostics.true_unless_strict_is_false
|
|
37185
37249
|
},
|
|
37186
37250
|
{
|
|
37187
37251
|
name: "alwaysStrict",
|
|
@@ -40228,10 +40292,10 @@ function getConditions(options, resolutionMode) {
|
|
|
40228
40292
|
return concatenate(conditions, options.customConditions);
|
|
40229
40293
|
}
|
|
40230
40294
|
function getAutomaticTypeDirectiveNames(options, host) {
|
|
40231
|
-
if (options
|
|
40232
|
-
return options.types;
|
|
40295
|
+
if (!usesWildcardTypes(options)) {
|
|
40296
|
+
return options.types ?? [];
|
|
40233
40297
|
}
|
|
40234
|
-
const
|
|
40298
|
+
const wildcardMatches = [];
|
|
40235
40299
|
if (host.directoryExists && host.getDirectories) {
|
|
40236
40300
|
const typeRoots = getEffectiveTypeRoots(options, host);
|
|
40237
40301
|
if (typeRoots) {
|
|
@@ -40244,7 +40308,7 @@ function getAutomaticTypeDirectiveNames(options, host) {
|
|
|
40244
40308
|
if (!isNotNeededPackage) {
|
|
40245
40309
|
const baseFileName = getBaseFileName(normalized);
|
|
40246
40310
|
if (baseFileName.charCodeAt(0) !== 46 /* dot */) {
|
|
40247
|
-
|
|
40311
|
+
wildcardMatches.push(baseFileName);
|
|
40248
40312
|
}
|
|
40249
40313
|
}
|
|
40250
40314
|
}
|
|
@@ -40252,7 +40316,7 @@ function getAutomaticTypeDirectiveNames(options, host) {
|
|
|
40252
40316
|
}
|
|
40253
40317
|
}
|
|
40254
40318
|
}
|
|
40255
|
-
return
|
|
40319
|
+
return deduplicate(flatten(options.types.map((t) => t === "*" ? wildcardMatches : t)), equateValues);
|
|
40256
40320
|
}
|
|
40257
40321
|
function isPackageJsonInfo(entry) {
|
|
40258
40322
|
return !!(entry == null ? void 0 : entry.contents);
|
|
@@ -49398,7 +49462,7 @@ function createTypeChecker(host) {
|
|
|
49398
49462
|
}
|
|
49399
49463
|
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors, errorMessage) {
|
|
49400
49464
|
const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */;
|
|
49401
|
-
errorMessage ?? (errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations);
|
|
49465
|
+
errorMessage ?? (errorMessage = getCannotResolveModuleNameErrorForSpecificModule(moduleReferenceExpression) ?? (isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations));
|
|
49402
49466
|
return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage, ignoreErrors);
|
|
49403
49467
|
}
|
|
49404
49468
|
function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, ignoreErrors = false, isForAugmentation = false) {
|
|
@@ -50852,7 +50916,7 @@ function createTypeChecker(host) {
|
|
|
50852
50916
|
if (name.includes("/node_modules/")) {
|
|
50853
50917
|
context.encounteredError = true;
|
|
50854
50918
|
if (context.tracker.reportLikelyUnsafeImportRequiredError) {
|
|
50855
|
-
context.tracker.reportLikelyUnsafeImportRequiredError(name);
|
|
50919
|
+
context.tracker.reportLikelyUnsafeImportRequiredError(name, nodeSymbol ? unescapeLeadingUnderscores(nodeSymbol.escapedName) : void 0);
|
|
50856
50920
|
}
|
|
50857
50921
|
}
|
|
50858
50922
|
if (name !== originalName) {
|
|
@@ -51137,7 +51201,7 @@ function createTypeChecker(host) {
|
|
|
51137
51201
|
return statements;
|
|
51138
51202
|
}
|
|
51139
51203
|
function withContext(enclosingDeclaration, flags, internalFlags, tracker, maximumLength, verbosityLevel, cb, out) {
|
|
51140
|
-
const moduleResolverHost = (tracker == null ? void 0 : tracker.
|
|
51204
|
+
const moduleResolverHost = (tracker == null ? void 0 : tracker.moduleResolverHost) ?? createBasicNodeBuilderModuleSpecifierResolutionHost(host);
|
|
51141
51205
|
flags = flags || 0 /* None */;
|
|
51142
51206
|
const maxTruncationLength = maximumLength || (flags & 1 /* NoTruncation */ ? noTruncationMaximumTruncationLength : defaultMaximumTruncationLength);
|
|
51143
51207
|
const context = {
|
|
@@ -52565,8 +52629,8 @@ function createTypeChecker(host) {
|
|
|
52565
52629
|
reportInaccessibleUniqueSymbolError() {
|
|
52566
52630
|
markError(() => oldTracker.reportInaccessibleUniqueSymbolError());
|
|
52567
52631
|
},
|
|
52568
|
-
reportLikelyUnsafeImportRequiredError(specifier) {
|
|
52569
|
-
markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier));
|
|
52632
|
+
reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
52633
|
+
markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier, symbolName2));
|
|
52570
52634
|
},
|
|
52571
52635
|
reportNonSerializableProperty(name) {
|
|
52572
52636
|
markError(() => oldTracker.reportNonSerializableProperty(name));
|
|
@@ -53092,7 +53156,7 @@ function createTypeChecker(host) {
|
|
|
53092
53156
|
if (!attributes) {
|
|
53093
53157
|
context.encounteredError = true;
|
|
53094
53158
|
if (context.tracker.reportLikelyUnsafeImportRequiredError) {
|
|
53095
|
-
context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier);
|
|
53159
|
+
context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier, unescapeLeadingUnderscores(symbol.escapedName));
|
|
53096
53160
|
}
|
|
53097
53161
|
}
|
|
53098
53162
|
}
|
|
@@ -53345,22 +53409,7 @@ function createTypeChecker(host) {
|
|
|
53345
53409
|
function getPropertyNameNodeForSymbol(symbol, context) {
|
|
53346
53410
|
const hashPrivateName = getClonedHashPrivateName(symbol);
|
|
53347
53411
|
if (hashPrivateName) {
|
|
53348
|
-
|
|
53349
|
-
if (!shouldEmitErroneousFieldName) {
|
|
53350
|
-
return hashPrivateName;
|
|
53351
|
-
} else {
|
|
53352
|
-
let rawName2 = unescapeLeadingUnderscores(symbol.escapedName);
|
|
53353
|
-
rawName2 = rawName2.replace(/__#\d+@#/g, "__#private@#");
|
|
53354
|
-
return createPropertyNameNodeForIdentifierOrLiteral(
|
|
53355
|
-
rawName2,
|
|
53356
|
-
getEmitScriptTarget(compilerOptions),
|
|
53357
|
-
/*singleQuote*/
|
|
53358
|
-
false,
|
|
53359
|
-
/*stringNamed*/
|
|
53360
|
-
true,
|
|
53361
|
-
!!(symbol.flags & 8192 /* Method */)
|
|
53362
|
-
);
|
|
53363
|
-
}
|
|
53412
|
+
return hashPrivateName;
|
|
53364
53413
|
}
|
|
53365
53414
|
const stringNamed = !!length(symbol.declarations) && every(symbol.declarations, isStringNamed);
|
|
53366
53415
|
const singleQuote = !!length(symbol.declarations) && every(symbol.declarations, isSingleQuotedStringNamed);
|
|
@@ -66885,9 +66934,12 @@ function createTypeChecker(host) {
|
|
|
66885
66934
|
if (relation === identityRelation) {
|
|
66886
66935
|
return signaturesIdenticalTo(source2, target2, kind);
|
|
66887
66936
|
}
|
|
66888
|
-
if (
|
|
66937
|
+
if (source2 === anyFunctionType) {
|
|
66889
66938
|
return -1 /* True */;
|
|
66890
66939
|
}
|
|
66940
|
+
if (target2 === anyFunctionType) {
|
|
66941
|
+
return 0 /* False */;
|
|
66942
|
+
}
|
|
66891
66943
|
const sourceIsJSConstructor = source2.symbol && isJSConstructor(source2.symbol.valueDeclaration);
|
|
66892
66944
|
const targetIsJSConstructor = target2.symbol && isJSConstructor(target2.symbol.valueDeclaration);
|
|
66893
66945
|
const sourceSignatures = getSignaturesOfType(
|
|
@@ -69273,19 +69325,21 @@ function createTypeChecker(host) {
|
|
|
69273
69325
|
case "console":
|
|
69274
69326
|
return Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;
|
|
69275
69327
|
case "$":
|
|
69276
|
-
return compilerOptions
|
|
69328
|
+
return usesWildcardTypes(compilerOptions) ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig;
|
|
69329
|
+
case "beforeEach":
|
|
69277
69330
|
case "describe":
|
|
69278
69331
|
case "suite":
|
|
69279
69332
|
case "it":
|
|
69280
69333
|
case "test":
|
|
69281
|
-
return compilerOptions
|
|
69334
|
+
return usesWildcardTypes(compilerOptions) ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig;
|
|
69282
69335
|
case "process":
|
|
69283
69336
|
case "require":
|
|
69284
69337
|
case "Buffer":
|
|
69285
69338
|
case "module":
|
|
69286
|
-
|
|
69339
|
+
case "NodeJS":
|
|
69340
|
+
return usesWildcardTypes(compilerOptions) ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig;
|
|
69287
69341
|
case "Bun":
|
|
69288
|
-
return compilerOptions
|
|
69342
|
+
return usesWildcardTypes(compilerOptions) ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig;
|
|
69289
69343
|
case "Map":
|
|
69290
69344
|
case "Set":
|
|
69291
69345
|
case "Promise":
|
|
@@ -69318,6 +69372,18 @@ function createTypeChecker(host) {
|
|
|
69318
69372
|
}
|
|
69319
69373
|
}
|
|
69320
69374
|
}
|
|
69375
|
+
function getCannotResolveModuleNameErrorForSpecificModule(moduleName) {
|
|
69376
|
+
if (moduleName.kind === 11 /* StringLiteral */) {
|
|
69377
|
+
if (nodeCoreModules.has(moduleName.text)) {
|
|
69378
|
+
if (usesWildcardTypes(compilerOptions)) {
|
|
69379
|
+
return Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;
|
|
69380
|
+
} else {
|
|
69381
|
+
return Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig;
|
|
69382
|
+
}
|
|
69383
|
+
}
|
|
69384
|
+
}
|
|
69385
|
+
return void 0;
|
|
69386
|
+
}
|
|
69321
69387
|
function getResolvedSymbol(node) {
|
|
69322
69388
|
const links = getNodeLinks(node);
|
|
69323
69389
|
if (!links.resolvedSymbol) {
|
|
@@ -74402,7 +74468,7 @@ function createTypeChecker(host) {
|
|
|
74402
74468
|
spread,
|
|
74403
74469
|
createAnonymousType(attributesSymbol, childPropMap, emptyArray, emptyArray, emptyArray),
|
|
74404
74470
|
attributesSymbol,
|
|
74405
|
-
objectFlags,
|
|
74471
|
+
objectFlags | getPropagatingFlagsOfTypes(childrenTypes),
|
|
74406
74472
|
/*readonly*/
|
|
74407
74473
|
false
|
|
74408
74474
|
);
|
|
@@ -77669,6 +77735,14 @@ function createTypeChecker(host) {
|
|
|
77669
77735
|
if (importCallOptionsType !== emptyObjectType) {
|
|
77670
77736
|
checkTypeAssignableTo(optionsType, getNullableType(importCallOptionsType, 4 /* Undefined */), node.arguments[1]);
|
|
77671
77737
|
}
|
|
77738
|
+
if (compilerOptions.ignoreDeprecations !== "6.0" && isObjectLiteralExpression(node.arguments[1])) {
|
|
77739
|
+
for (const prop of node.arguments[1].properties) {
|
|
77740
|
+
if (isPropertyAssignment(prop) && isIdentifier(prop.name) && prop.name.escapedText === "assert") {
|
|
77741
|
+
grammarErrorOnNode(prop.name, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
|
|
77742
|
+
break;
|
|
77743
|
+
}
|
|
77744
|
+
}
|
|
77745
|
+
}
|
|
77672
77746
|
}
|
|
77673
77747
|
const moduleSymbol = resolveExternalModuleName(node, specifier);
|
|
77674
77748
|
if (moduleSymbol) {
|
|
@@ -81911,6 +81985,9 @@ function createTypeChecker(host) {
|
|
|
81911
81985
|
function checkImportType(node) {
|
|
81912
81986
|
checkSourceElement(node.argument);
|
|
81913
81987
|
if (node.attributes) {
|
|
81988
|
+
if (node.attributes.token !== 118 /* WithKeyword */ && compilerOptions.ignoreDeprecations !== "6.0") {
|
|
81989
|
+
grammarErrorOnFirstToken(node.attributes, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
|
|
81990
|
+
}
|
|
81914
81991
|
getResolutionModeOverride(node.attributes, grammarErrorOnNode);
|
|
81915
81992
|
}
|
|
81916
81993
|
checkTypeReferenceOrImport(node);
|
|
@@ -90940,11 +91017,11 @@ var SymbolTrackerImpl = class _SymbolTrackerImpl {
|
|
|
90940
91017
|
this.inner.reportCyclicStructureError();
|
|
90941
91018
|
}
|
|
90942
91019
|
}
|
|
90943
|
-
reportLikelyUnsafeImportRequiredError(specifier) {
|
|
91020
|
+
reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
90944
91021
|
var _a;
|
|
90945
91022
|
if ((_a = this.inner) == null ? void 0 : _a.reportLikelyUnsafeImportRequiredError) {
|
|
90946
91023
|
this.onDiagnosticReported();
|
|
90947
|
-
this.inner.reportLikelyUnsafeImportRequiredError(specifier);
|
|
91024
|
+
this.inner.reportLikelyUnsafeImportRequiredError(specifier, symbolName2);
|
|
90948
91025
|
}
|
|
90949
91026
|
}
|
|
90950
91027
|
reportTruncationError() {
|
|
@@ -103991,7 +104068,7 @@ function transformJsx(context) {
|
|
|
103991
104068
|
node.children,
|
|
103992
104069
|
isChild,
|
|
103993
104070
|
/*location*/
|
|
103994
|
-
node
|
|
104071
|
+
createRange(skipTrivia(currentSourceFile.text, node.pos), node.end)
|
|
103995
104072
|
);
|
|
103996
104073
|
}
|
|
103997
104074
|
function visitJsxSelfClosingElement(node, isChild) {
|
|
@@ -104002,7 +104079,7 @@ function transformJsx(context) {
|
|
|
104002
104079
|
void 0,
|
|
104003
104080
|
isChild,
|
|
104004
104081
|
/*location*/
|
|
104005
|
-
node
|
|
104082
|
+
createRange(skipTrivia(currentSourceFile.text, node.pos), node.end)
|
|
104006
104083
|
);
|
|
104007
104084
|
}
|
|
104008
104085
|
function visitJsxFragment(node, isChild) {
|
|
@@ -104012,7 +104089,7 @@ function transformJsx(context) {
|
|
|
104012
104089
|
node.children,
|
|
104013
104090
|
isChild,
|
|
104014
104091
|
/*location*/
|
|
104015
|
-
node
|
|
104092
|
+
createRange(skipTrivia(currentSourceFile.text, node.pos), node.end)
|
|
104016
104093
|
);
|
|
104017
104094
|
}
|
|
104018
104095
|
function convertJsxChildrenToChildrenPropObject(children) {
|
|
@@ -114317,9 +114394,13 @@ function transformDeclarations(context) {
|
|
|
114317
114394
|
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), "this"));
|
|
114318
114395
|
}
|
|
114319
114396
|
}
|
|
114320
|
-
function reportLikelyUnsafeImportRequiredError(specifier) {
|
|
114397
|
+
function reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
114321
114398
|
if (errorNameNode || errorFallbackNode) {
|
|
114322
|
-
|
|
114399
|
+
if (symbolName2) {
|
|
114400
|
+
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier, symbolName2));
|
|
114401
|
+
} else {
|
|
114402
|
+
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier));
|
|
114403
|
+
}
|
|
114323
114404
|
}
|
|
114324
114405
|
}
|
|
114325
114406
|
function reportTruncationError() {
|
|
@@ -115492,6 +115573,7 @@ function transformDeclarations(context) {
|
|
|
115492
115573
|
if (isOmittedExpression(elem)) continue;
|
|
115493
115574
|
if (isBindingPattern(elem.name)) {
|
|
115494
115575
|
elems = concatenate(elems, walkBindingPattern(elem.name));
|
|
115576
|
+
continue;
|
|
115495
115577
|
}
|
|
115496
115578
|
elems = elems || [];
|
|
115497
115579
|
elems.push(factory2.createPropertyDeclaration(
|
|
@@ -123362,6 +123444,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123362
123444
|
Debug.assert(newSourceFiles.length === oldProgram.getSourceFiles().length);
|
|
123363
123445
|
for (const newSourceFile of newSourceFiles) {
|
|
123364
123446
|
filesByName.set(newSourceFile.path, newSourceFile);
|
|
123447
|
+
if (oldProgram.isSourceFileDefaultLibrary(newSourceFile)) {
|
|
123448
|
+
libFiles.add(newSourceFile.path);
|
|
123449
|
+
}
|
|
123365
123450
|
}
|
|
123366
123451
|
const oldFilesByNameMap = oldProgram.getFilesByNameMap();
|
|
123367
123452
|
oldFilesByNameMap.forEach((oldFile, path) => {
|
|
@@ -125156,6 +125241,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
125156
125241
|
void 0
|
|
125157
125242
|
);
|
|
125158
125243
|
}
|
|
125244
|
+
if (options.downlevelIteration !== void 0) {
|
|
125245
|
+
createDeprecatedDiagnostic("downlevelIteration");
|
|
125246
|
+
}
|
|
125159
125247
|
});
|
|
125160
125248
|
}
|
|
125161
125249
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
|
@@ -125912,8 +126000,7 @@ function createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax) {
|
|
|
125912
126000
|
reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
|
|
125913
126001
|
) : void 0;
|
|
125914
126002
|
case 8 /* AutomaticTypeDirectiveFile */:
|
|
125915
|
-
|
|
125916
|
-
configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", reason.typeReference);
|
|
126003
|
+
configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", usesWildcardTypes(options) ? "*" : reason.typeReference);
|
|
125917
126004
|
message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
|
|
125918
126005
|
break;
|
|
125919
126006
|
case 6 /* LibFile */:
|
|
@@ -128933,7 +129020,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
128933
129020
|
function updateTypeRootsWatch() {
|
|
128934
129021
|
var _a;
|
|
128935
129022
|
const options = resolutionHost.getCompilationSettings();
|
|
128936
|
-
if (options
|
|
129023
|
+
if (!usesWildcardTypes(options)) {
|
|
128937
129024
|
closeTypeRootsWatch();
|
|
128938
129025
|
return;
|
|
128939
129026
|
}
|
|
@@ -129290,7 +129377,7 @@ function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) {
|
|
|
129290
129377
|
options.outFile ? "--outFile" : "--out"
|
|
129291
129378
|
);
|
|
129292
129379
|
case 8 /* AutomaticTypeDirectiveFile */: {
|
|
129293
|
-
const messageAndArgs = options
|
|
129380
|
+
const messageAndArgs = !usesWildcardTypes(options) ? reason.packageId ? [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions, reason.typeReference] : reason.packageId ? [Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : [Diagnostics.Entry_point_for_implicit_type_library_0, reason.typeReference];
|
|
129294
129381
|
return chainDiagnosticMessages(
|
|
129295
129382
|
/*details*/
|
|
129296
129383
|
void 0,
|
|
@@ -132117,7 +132204,8 @@ function shouldBePretty(sys2, options) {
|
|
|
132117
132204
|
return options.pretty;
|
|
132118
132205
|
}
|
|
132119
132206
|
function getOptionsForHelp(commandLine) {
|
|
132120
|
-
|
|
132207
|
+
const helpOptions = filter(optionDeclarations.concat(tscBuildOption), (option) => option.showInHelp !== false);
|
|
132208
|
+
return !!commandLine.options.all ? toSorted(helpOptions, (a, b) => compareStringsCaseInsensitive(a.name, b.name)) : filter(helpOptions, (v) => !!v.showInSimplifiedHelpView);
|
|
132121
132209
|
}
|
|
132122
132210
|
function printVersion(sys2) {
|
|
132123
132211
|
sys2.write(getDiagnosticText(Diagnostics.Version_0, version) + sys2.newLine);
|
|
@@ -132433,7 +132521,7 @@ function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) {
|
|
|
132433
132521
|
output = [...output, ...generateSectionOptionsOutput(
|
|
132434
132522
|
sys2,
|
|
132435
132523
|
getDiagnosticText(Diagnostics.WATCH_OPTIONS),
|
|
132436
|
-
watchOptions,
|
|
132524
|
+
filter(watchOptions, (option) => option.showInHelp !== false),
|
|
132437
132525
|
/*subCategory*/
|
|
132438
132526
|
false,
|
|
132439
132527
|
getDiagnosticText(Diagnostics.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon)
|
|
@@ -132441,7 +132529,7 @@ function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) {
|
|
|
132441
132529
|
output = [...output, ...generateSectionOptionsOutput(
|
|
132442
132530
|
sys2,
|
|
132443
132531
|
getDiagnosticText(Diagnostics.BUILD_OPTIONS),
|
|
132444
|
-
filter(buildOptions, (option) => option !== tscBuildOption),
|
|
132532
|
+
filter(buildOptions, (option) => option !== tscBuildOption && option.showInHelp !== false),
|
|
132445
132533
|
/*subCategory*/
|
|
132446
132534
|
false,
|
|
132447
132535
|
formatMessage(Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")
|
|
@@ -132455,7 +132543,7 @@ function printBuildHelp(sys2, buildOptions) {
|
|
|
132455
132543
|
output = [...output, ...generateSectionOptionsOutput(
|
|
132456
132544
|
sys2,
|
|
132457
132545
|
getDiagnosticText(Diagnostics.BUILD_OPTIONS),
|
|
132458
|
-
filter(buildOptions, (option) => option !== tscBuildOption),
|
|
132546
|
+
filter(buildOptions, (option) => option !== tscBuildOption && option.showInHelp !== false),
|
|
132459
132547
|
/*subCategory*/
|
|
132460
132548
|
false,
|
|
132461
132549
|
formatMessage(Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")
|