@typescript-deploys/pr-build 6.0.0-pr-62111-9 → 6.0.0-pr-62418-21
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 +193 -44
- package/lib/lib.dom.asynciterable.d.ts +1 -1
- package/lib/lib.dom.d.ts +1712 -949
- package/lib/lib.dom.iterable.d.ts +1 -1
- package/lib/lib.esnext.d.ts +1 -0
- package/lib/lib.esnext.typedarrays.d.ts +90 -0
- package/lib/lib.webworker.asynciterable.d.ts +2 -23
- package/lib/lib.webworker.d.ts +948 -328
- package/lib/lib.webworker.iterable.d.ts +2 -322
- package/lib/typescript.d.ts +1 -0
- package/lib/typescript.js +214 -49
- package/package.json +1 -1
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.20251003`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6947,6 +6947,7 @@ var Diagnostics = {
|
|
|
6947
6947
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
6948
6948
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
6949
6949
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
6950
|
+
The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout: diag(5011, 1 /* Error */, "The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another__5011", "The common source directory of '{0}' is '{1}'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout."),
|
|
6950
6951
|
Cannot_read_file_0_Colon_1: diag(5012, 1 /* Error */, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."),
|
|
6951
6952
|
Unknown_compiler_option_0: diag(5023, 1 /* Error */, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."),
|
|
6952
6953
|
Compiler_option_0_requires_a_value_of_type_1: diag(5024, 1 /* Error */, "Compiler_option_0_requires_a_value_of_type_1_5024", "Compiler option '{0}' requires a value of type {1}."),
|
|
@@ -7010,6 +7011,7 @@ var Diagnostics = {
|
|
|
7010
7011
|
Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."),
|
|
7011
7012
|
Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),
|
|
7012
7013
|
Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),
|
|
7014
|
+
Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information: diag(5111, 3 /* Message */, "Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information_5111", "Visit https://aka.ms/ts6 for migration information."),
|
|
7013
7015
|
Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."),
|
|
7014
7016
|
Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."),
|
|
7015
7017
|
Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
|
|
@@ -13477,6 +13479,12 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13477
13479
|
"toSorted",
|
|
13478
13480
|
"toSpliced",
|
|
13479
13481
|
"with"
|
|
13482
|
+
],
|
|
13483
|
+
esnext: [
|
|
13484
|
+
"toBase64",
|
|
13485
|
+
"setFromBase64",
|
|
13486
|
+
"toHex",
|
|
13487
|
+
"setFromHex"
|
|
13480
13488
|
]
|
|
13481
13489
|
})),
|
|
13482
13490
|
Uint8ClampedArray: new Map(Object.entries({
|
|
@@ -13605,6 +13613,12 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13605
13613
|
es2022: [
|
|
13606
13614
|
"cause"
|
|
13607
13615
|
]
|
|
13616
|
+
})),
|
|
13617
|
+
Uint8ArrayConstructor: new Map(Object.entries({
|
|
13618
|
+
esnext: [
|
|
13619
|
+
"fromBase64",
|
|
13620
|
+
"fromHex"
|
|
13621
|
+
]
|
|
13608
13622
|
}))
|
|
13609
13623
|
}))
|
|
13610
13624
|
);
|
|
@@ -15492,6 +15506,9 @@ function getTypeParameterFromJsDoc(node) {
|
|
|
15492
15506
|
const { typeParameters } = node.parent.parent.parent;
|
|
15493
15507
|
return typeParameters && find(typeParameters, (p) => p.name.escapedText === name);
|
|
15494
15508
|
}
|
|
15509
|
+
function hasTypeArguments(node) {
|
|
15510
|
+
return !!node.typeArguments;
|
|
15511
|
+
}
|
|
15495
15512
|
function getAssignmentTarget(node) {
|
|
15496
15513
|
let parent = node.parent;
|
|
15497
15514
|
while (true) {
|
|
@@ -16584,7 +16601,7 @@ function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
|
|
|
16584
16601
|
if (host.getRedirectFromSourceFile(sourceFile.fileName)) return false;
|
|
16585
16602
|
if (options.outFile) return true;
|
|
16586
16603
|
if (!options.outDir) return false;
|
|
16587
|
-
if (options.rootDir || options.
|
|
16604
|
+
if (options.rootDir || options.configFilePath) {
|
|
16588
16605
|
const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
|
|
16589
16606
|
const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
|
|
16590
16607
|
if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */) return false;
|
|
@@ -36464,6 +36481,7 @@ var libEntries = [
|
|
|
36464
36481
|
["esnext.iterator", "lib.esnext.iterator.d.ts"],
|
|
36465
36482
|
["esnext.promise", "lib.esnext.promise.d.ts"],
|
|
36466
36483
|
["esnext.float16", "lib.esnext.float16.d.ts"],
|
|
36484
|
+
["esnext.typedarrays", "lib.esnext.typedarrays.d.ts"],
|
|
36467
36485
|
["esnext.error", "lib.esnext.error.d.ts"],
|
|
36468
36486
|
["esnext.sharedmemory", "lib.esnext.sharedmemory.d.ts"],
|
|
36469
36487
|
["decorators", "lib.decorators.d.ts"],
|
|
@@ -41721,7 +41739,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
|
|
|
41721
41739
|
if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
|
|
41722
41740
|
const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
|
|
41723
41741
|
const commonSourceDirGuesses = [];
|
|
41724
|
-
if (state.compilerOptions.rootDir || state.compilerOptions.
|
|
41742
|
+
if (state.compilerOptions.rootDir || state.compilerOptions.configFilePath) {
|
|
41725
41743
|
const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName));
|
|
41726
41744
|
commonSourceDirGuesses.push(commonDir);
|
|
41727
41745
|
} else if (state.requestContainingDirectory) {
|
|
@@ -66786,13 +66804,10 @@ function createTypeChecker(host) {
|
|
|
66786
66804
|
if (isObjectLiteralType(target2)) {
|
|
66787
66805
|
for (const sourceProp of excludeProperties(getPropertiesOfType(source2), excludedProperties)) {
|
|
66788
66806
|
if (!getPropertyOfObjectType(target2, sourceProp.escapedName)) {
|
|
66789
|
-
|
|
66790
|
-
|
|
66791
|
-
if (reportErrors2) {
|
|
66792
|
-
reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2));
|
|
66793
|
-
}
|
|
66794
|
-
return 0 /* False */;
|
|
66807
|
+
if (reportErrors2) {
|
|
66808
|
+
reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2));
|
|
66795
66809
|
}
|
|
66810
|
+
return 0 /* False */;
|
|
66796
66811
|
}
|
|
66797
66812
|
}
|
|
66798
66813
|
}
|
|
@@ -67456,7 +67471,7 @@ function createTypeChecker(host) {
|
|
|
67456
67471
|
if (isReadonlySymbol(sourceProp) !== isReadonlySymbol(targetProp)) {
|
|
67457
67472
|
return 0 /* False */;
|
|
67458
67473
|
}
|
|
67459
|
-
return compareTypes(
|
|
67474
|
+
return compareTypes(getNonMissingTypeOfSymbol(sourceProp), getNonMissingTypeOfSymbol(targetProp));
|
|
67460
67475
|
}
|
|
67461
67476
|
function isMatchingSignature(source, target, partialMatch) {
|
|
67462
67477
|
const sourceParameterCount = getParameterCount(source);
|
|
@@ -69470,23 +69485,21 @@ function createTypeChecker(host) {
|
|
|
69470
69485
|
for (const type of types) {
|
|
69471
69486
|
if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
|
|
69472
69487
|
const discriminant = getTypeOfPropertyOfType(type, name);
|
|
69473
|
-
if (discriminant) {
|
|
69474
|
-
|
|
69475
|
-
return void 0;
|
|
69476
|
-
}
|
|
69477
|
-
let duplicate = false;
|
|
69478
|
-
forEachType(discriminant, (t) => {
|
|
69479
|
-
const id = getTypeId(getRegularTypeOfLiteralType(t));
|
|
69480
|
-
const existing = map2.get(id);
|
|
69481
|
-
if (!existing) {
|
|
69482
|
-
map2.set(id, type);
|
|
69483
|
-
} else if (existing !== unknownType) {
|
|
69484
|
-
map2.set(id, unknownType);
|
|
69485
|
-
duplicate = true;
|
|
69486
|
-
}
|
|
69487
|
-
});
|
|
69488
|
-
if (!duplicate) count++;
|
|
69488
|
+
if (!discriminant || !isLiteralType(discriminant)) {
|
|
69489
|
+
return void 0;
|
|
69489
69490
|
}
|
|
69491
|
+
let duplicate = false;
|
|
69492
|
+
forEachType(discriminant, (t) => {
|
|
69493
|
+
const id = getTypeId(getRegularTypeOfLiteralType(t));
|
|
69494
|
+
const existing = map2.get(id);
|
|
69495
|
+
if (!existing) {
|
|
69496
|
+
map2.set(id, type);
|
|
69497
|
+
} else if (existing !== unknownType) {
|
|
69498
|
+
map2.set(id, unknownType);
|
|
69499
|
+
duplicate = true;
|
|
69500
|
+
}
|
|
69501
|
+
});
|
|
69502
|
+
if (!duplicate) count++;
|
|
69490
69503
|
}
|
|
69491
69504
|
}
|
|
69492
69505
|
return count >= 10 && count * 2 >= types.length ? map2 : void 0;
|
|
@@ -81603,6 +81616,47 @@ function createTypeChecker(host) {
|
|
|
81603
81616
|
}
|
|
81604
81617
|
return void 0;
|
|
81605
81618
|
}
|
|
81619
|
+
function getUninstantiatedSignatures(node) {
|
|
81620
|
+
switch (node.kind) {
|
|
81621
|
+
case 214 /* CallExpression */:
|
|
81622
|
+
case 171 /* Decorator */:
|
|
81623
|
+
return getSignaturesOfType(
|
|
81624
|
+
getTypeOfExpression(node.expression),
|
|
81625
|
+
0 /* Call */
|
|
81626
|
+
);
|
|
81627
|
+
case 215 /* NewExpression */:
|
|
81628
|
+
return getSignaturesOfType(
|
|
81629
|
+
getTypeOfExpression(node.expression),
|
|
81630
|
+
1 /* Construct */
|
|
81631
|
+
);
|
|
81632
|
+
case 286 /* JsxSelfClosingElement */:
|
|
81633
|
+
case 287 /* JsxOpeningElement */:
|
|
81634
|
+
if (isJsxIntrinsicTagName(node.tagName)) return [];
|
|
81635
|
+
return getSignaturesOfType(
|
|
81636
|
+
getTypeOfExpression(node.tagName),
|
|
81637
|
+
0 /* Call */
|
|
81638
|
+
);
|
|
81639
|
+
case 216 /* TaggedTemplateExpression */:
|
|
81640
|
+
return getSignaturesOfType(
|
|
81641
|
+
getTypeOfExpression(node.tag),
|
|
81642
|
+
0 /* Call */
|
|
81643
|
+
);
|
|
81644
|
+
case 227 /* BinaryExpression */:
|
|
81645
|
+
case 290 /* JsxOpeningFragment */:
|
|
81646
|
+
return [];
|
|
81647
|
+
}
|
|
81648
|
+
}
|
|
81649
|
+
function getTypeParameterConstraintForPositionAcrossSignatures(signatures, position) {
|
|
81650
|
+
const relevantTypeParameterConstraints = flatMap(signatures, (signature) => {
|
|
81651
|
+
var _a;
|
|
81652
|
+
const relevantTypeParameter = (_a = signature.typeParameters) == null ? void 0 : _a[position];
|
|
81653
|
+
if (relevantTypeParameter === void 0) return [];
|
|
81654
|
+
const relevantConstraint = getConstraintOfTypeParameter(relevantTypeParameter);
|
|
81655
|
+
if (relevantConstraint === void 0) return [];
|
|
81656
|
+
return [relevantConstraint];
|
|
81657
|
+
});
|
|
81658
|
+
return getUnionType(relevantTypeParameterConstraints);
|
|
81659
|
+
}
|
|
81606
81660
|
function checkTypeReferenceNode(node) {
|
|
81607
81661
|
checkGrammarTypeArguments(node, node.typeArguments);
|
|
81608
81662
|
if (node.kind === 184 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) {
|
|
@@ -81638,12 +81692,48 @@ function createTypeChecker(host) {
|
|
|
81638
81692
|
}
|
|
81639
81693
|
}
|
|
81640
81694
|
function getTypeArgumentConstraint(node) {
|
|
81641
|
-
|
|
81642
|
-
if (
|
|
81643
|
-
|
|
81644
|
-
|
|
81645
|
-
|
|
81646
|
-
|
|
81695
|
+
let typeArgumentPosition;
|
|
81696
|
+
if (hasTypeArguments(node.parent) && Array.isArray(node.parent.typeArguments)) {
|
|
81697
|
+
typeArgumentPosition = node.parent.typeArguments.indexOf(node);
|
|
81698
|
+
}
|
|
81699
|
+
if (typeArgumentPosition !== void 0) {
|
|
81700
|
+
if (isCallLikeExpression(node.parent)) {
|
|
81701
|
+
return getTypeParameterConstraintForPositionAcrossSignatures(
|
|
81702
|
+
getUninstantiatedSignatures(node.parent),
|
|
81703
|
+
typeArgumentPosition
|
|
81704
|
+
);
|
|
81705
|
+
}
|
|
81706
|
+
if (isDecorator(node.parent.parent)) {
|
|
81707
|
+
return getTypeParameterConstraintForPositionAcrossSignatures(
|
|
81708
|
+
getUninstantiatedSignatures(node.parent.parent),
|
|
81709
|
+
typeArgumentPosition
|
|
81710
|
+
);
|
|
81711
|
+
}
|
|
81712
|
+
if (isExpressionWithTypeArguments(node.parent) && isExpressionStatement(node.parent.parent)) {
|
|
81713
|
+
const uninstantiatedType = checkExpression(node.parent.expression);
|
|
81714
|
+
const callConstraint = getTypeParameterConstraintForPositionAcrossSignatures(
|
|
81715
|
+
getSignaturesOfType(uninstantiatedType, 0 /* Call */),
|
|
81716
|
+
typeArgumentPosition
|
|
81717
|
+
);
|
|
81718
|
+
const constructConstraint = getTypeParameterConstraintForPositionAcrossSignatures(
|
|
81719
|
+
getSignaturesOfType(uninstantiatedType, 1 /* Construct */),
|
|
81720
|
+
typeArgumentPosition
|
|
81721
|
+
);
|
|
81722
|
+
if (constructConstraint.flags & 131072 /* Never */) return callConstraint;
|
|
81723
|
+
if (callConstraint.flags & 131072 /* Never */) return constructConstraint;
|
|
81724
|
+
return getIntersectionType([callConstraint, constructConstraint]);
|
|
81725
|
+
}
|
|
81726
|
+
if (isTypeReferenceType(node.parent)) {
|
|
81727
|
+
const typeParameters = getTypeParametersForTypeReferenceOrImport(node.parent);
|
|
81728
|
+
if (!typeParameters) return void 0;
|
|
81729
|
+
const relevantTypeParameter = typeParameters[typeArgumentPosition];
|
|
81730
|
+
const constraint = getConstraintOfTypeParameter(relevantTypeParameter);
|
|
81731
|
+
return constraint && instantiateType(
|
|
81732
|
+
constraint,
|
|
81733
|
+
createTypeMapper(typeParameters, getEffectiveTypeArguments(node.parent, typeParameters))
|
|
81734
|
+
);
|
|
81735
|
+
}
|
|
81736
|
+
}
|
|
81647
81737
|
}
|
|
81648
81738
|
function checkTypeQuery(node) {
|
|
81649
81739
|
getTypeFromTypeQueryNode(node);
|
|
@@ -115930,7 +116020,7 @@ function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCa
|
|
|
115930
116020
|
if (options.rootDir) {
|
|
115931
116021
|
commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory);
|
|
115932
116022
|
checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(options.rootDir);
|
|
115933
|
-
} else if (options.
|
|
116023
|
+
} else if (options.configFilePath) {
|
|
115934
116024
|
commonSourceDirectory = getDirectoryPath(normalizeSlashes(options.configFilePath));
|
|
115935
116025
|
checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(commonSourceDirectory);
|
|
115936
116026
|
} else {
|
|
@@ -115941,6 +116031,13 @@ function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCa
|
|
|
115941
116031
|
}
|
|
115942
116032
|
return commonSourceDirectory;
|
|
115943
116033
|
}
|
|
116034
|
+
function getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName) {
|
|
116035
|
+
let commonSourceDirectory = computeCommonSourceDirectoryOfFilenames(emittedFiles, currentDirectory, getCanonicalFileName);
|
|
116036
|
+
if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== directorySeparator) {
|
|
116037
|
+
commonSourceDirectory += directorySeparator;
|
|
116038
|
+
}
|
|
116039
|
+
return commonSourceDirectory;
|
|
116040
|
+
}
|
|
115944
116041
|
function getCommonSourceDirectoryOfConfig({ options, fileNames }, ignoreCase) {
|
|
115945
116042
|
return getCommonSourceDirectory(
|
|
115946
116043
|
options,
|
|
@@ -124373,6 +124470,31 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124373
124470
|
createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
|
|
124374
124471
|
}
|
|
124375
124472
|
}
|
|
124473
|
+
if (!options.noEmit && !options.composite && !options.rootDir && options.configFilePath && (options.outDir || // there is --outDir specified
|
|
124474
|
+
getEmitDeclarations(options) && options.declarationDir || // there is --declarationDir specified
|
|
124475
|
+
options.outFile)) {
|
|
124476
|
+
const dir = getCommonSourceDirectory2();
|
|
124477
|
+
const emittedFiles = mapDefined(files, (file) => !file.isDeclarationFile && sourceFileMayBeEmitted(file, program) ? file.fileName : void 0);
|
|
124478
|
+
const dir59 = getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName);
|
|
124479
|
+
if (dir59 !== "" && getCanonicalFileName(dir) !== getCanonicalFileName(dir59)) {
|
|
124480
|
+
createDiagnosticForOption(
|
|
124481
|
+
/*onKey*/
|
|
124482
|
+
true,
|
|
124483
|
+
options.outFile ? "outFile" : options.outDir ? "outDir" : "declarationDir",
|
|
124484
|
+
!options.outFile && options.outDir ? "declarationDir" : void 0,
|
|
124485
|
+
chainDiagnosticMessages(
|
|
124486
|
+
chainDiagnosticMessages(
|
|
124487
|
+
/*details*/
|
|
124488
|
+
void 0,
|
|
124489
|
+
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
124490
|
+
),
|
|
124491
|
+
Diagnostics.The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout,
|
|
124492
|
+
getBaseFileName(options.configFilePath),
|
|
124493
|
+
getRelativePathFromFile(options.configFilePath, dir59, getCanonicalFileName)
|
|
124494
|
+
)
|
|
124495
|
+
);
|
|
124496
|
+
}
|
|
124497
|
+
}
|
|
124376
124498
|
if (options.checkJs && !getAllowJSCompilerOption(options)) {
|
|
124377
124499
|
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs");
|
|
124378
124500
|
}
|
|
@@ -124500,32 +124622,35 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124500
124622
|
const mustBeRemoved = !(removedInVersion.compareTo(typescriptVersion) === 1 /* GreaterThan */);
|
|
124501
124623
|
const canBeSilenced = !mustBeRemoved && ignoreDeprecationsVersion.compareTo(deprecatedInVersion) === -1 /* LessThan */;
|
|
124502
124624
|
if (mustBeRemoved || canBeSilenced) {
|
|
124503
|
-
fn((name, value, useInstead) => {
|
|
124625
|
+
fn((name, value, useInstead, related) => {
|
|
124504
124626
|
if (mustBeRemoved) {
|
|
124505
124627
|
if (value === void 0) {
|
|
124506
|
-
createDiagnostic(name, value, useInstead, Diagnostics.Option_0_has_been_removed_Please_remove_it_from_your_configuration, name);
|
|
124628
|
+
createDiagnostic(name, value, useInstead, related, Diagnostics.Option_0_has_been_removed_Please_remove_it_from_your_configuration, name);
|
|
124507
124629
|
} else {
|
|
124508
|
-
createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration, name, value);
|
|
124630
|
+
createDiagnostic(name, value, useInstead, related, Diagnostics.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration, name, value);
|
|
124509
124631
|
}
|
|
124510
124632
|
} else {
|
|
124511
124633
|
if (value === void 0) {
|
|
124512
|
-
createDiagnostic(name, value, useInstead, Diagnostics.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, name, removedIn, deprecatedIn);
|
|
124634
|
+
createDiagnostic(name, value, useInstead, related, Diagnostics.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, name, removedIn, deprecatedIn);
|
|
124513
124635
|
} else {
|
|
124514
|
-
createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, name, value, removedIn, deprecatedIn);
|
|
124636
|
+
createDiagnostic(name, value, useInstead, related, Diagnostics.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, name, value, removedIn, deprecatedIn);
|
|
124515
124637
|
}
|
|
124516
124638
|
}
|
|
124517
124639
|
});
|
|
124518
124640
|
}
|
|
124519
124641
|
}
|
|
124520
124642
|
function verifyDeprecatedCompilerOptions() {
|
|
124521
|
-
function createDiagnostic(name, value, useInstead, message, ...args) {
|
|
124643
|
+
function createDiagnostic(name, value, useInstead, related, message, ...args) {
|
|
124522
124644
|
if (useInstead) {
|
|
124523
|
-
|
|
124645
|
+
let details = chainDiagnosticMessages(
|
|
124524
124646
|
/*details*/
|
|
124525
124647
|
void 0,
|
|
124526
124648
|
Diagnostics.Use_0_instead,
|
|
124527
124649
|
useInstead
|
|
124528
124650
|
);
|
|
124651
|
+
if (related) {
|
|
124652
|
+
details = chainDiagnosticMessages(details, related);
|
|
124653
|
+
}
|
|
124529
124654
|
const chain = chainDiagnosticMessages(details, message, ...args);
|
|
124530
124655
|
createDiagnosticForOption(
|
|
124531
124656
|
/*onKey*/
|
|
@@ -124536,14 +124661,22 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124536
124661
|
chain
|
|
124537
124662
|
);
|
|
124538
124663
|
} else {
|
|
124664
|
+
let details;
|
|
124665
|
+
if (related) {
|
|
124666
|
+
details = chainDiagnosticMessages(
|
|
124667
|
+
/*details*/
|
|
124668
|
+
void 0,
|
|
124669
|
+
related
|
|
124670
|
+
);
|
|
124671
|
+
}
|
|
124672
|
+
const chain = chainDiagnosticMessages(details, message, ...args);
|
|
124539
124673
|
createDiagnosticForOption(
|
|
124540
124674
|
/*onKey*/
|
|
124541
124675
|
!value,
|
|
124542
124676
|
name,
|
|
124543
124677
|
/*option2*/
|
|
124544
124678
|
void 0,
|
|
124545
|
-
|
|
124546
|
-
...args
|
|
124679
|
+
chain
|
|
124547
124680
|
);
|
|
124548
124681
|
}
|
|
124549
124682
|
}
|
|
@@ -124596,12 +124729,28 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124596
124729
|
});
|
|
124597
124730
|
checkDeprecations("6.0", "7.0", createDiagnostic, (createDeprecatedDiagnostic) => {
|
|
124598
124731
|
if (options.moduleResolution === 2 /* Node10 */) {
|
|
124599
|
-
createDeprecatedDiagnostic(
|
|
124732
|
+
createDeprecatedDiagnostic(
|
|
124733
|
+
"moduleResolution",
|
|
124734
|
+
"node10",
|
|
124735
|
+
/*useInstead*/
|
|
124736
|
+
void 0,
|
|
124737
|
+
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
124738
|
+
);
|
|
124739
|
+
}
|
|
124740
|
+
if (options.baseUrl !== void 0) {
|
|
124741
|
+
createDeprecatedDiagnostic(
|
|
124742
|
+
"baseUrl",
|
|
124743
|
+
/*value*/
|
|
124744
|
+
void 0,
|
|
124745
|
+
/*useInstead*/
|
|
124746
|
+
void 0,
|
|
124747
|
+
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
124748
|
+
);
|
|
124600
124749
|
}
|
|
124601
124750
|
});
|
|
124602
124751
|
}
|
|
124603
124752
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
|
124604
|
-
function createDiagnostic(_name, _value, _useInstead, message, ...args) {
|
|
124753
|
+
function createDiagnostic(_name, _value, _useInstead, _related, message, ...args) {
|
|
124605
124754
|
createDiagnosticForReference(parentFile, index, message, ...args);
|
|
124606
124755
|
}
|
|
124607
124756
|
checkDeprecations("5.0", "5.5", createDiagnostic, (createDeprecatedDiagnostic) => {
|
|
@@ -14,5 +14,5 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
// This file's contents are now included in the main
|
|
17
|
+
// This file's contents are now included in the main types file.
|
|
18
18
|
// The file has been left for backward compatibility.
|