@typescript-deploys/pr-build 5.2.0-pr-54838-4 → 5.2.0-pr-54935-7
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 +347 -341
- package/lib/tsserver.js +529 -418
- package/lib/tsserverlibrary.d.ts +6 -3
- package/lib/tsserverlibrary.js +529 -417
- package/lib/typescript.d.ts +5 -2
- package/lib/typescript.js +508 -396
- package/lib/typingsInstaller.js +104 -100
- package/package.json +2 -2
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.2";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230709`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -759,8 +759,8 @@ function unorderedRemoveFirstItemWhere(array, predicate) {
|
|
|
759
759
|
}
|
|
760
760
|
return false;
|
|
761
761
|
}
|
|
762
|
-
function createGetCanonicalFileName(
|
|
763
|
-
return
|
|
762
|
+
function createGetCanonicalFileName(useCaseSensitiveFileNames2) {
|
|
763
|
+
return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase;
|
|
764
764
|
}
|
|
765
765
|
function patternText({ prefix, suffix }) {
|
|
766
766
|
return `${prefix}*${suffix}`;
|
|
@@ -3586,10 +3586,10 @@ function createDynamicPriorityPollingWatchFile(host) {
|
|
|
3586
3586
|
pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval));
|
|
3587
3587
|
}
|
|
3588
3588
|
}
|
|
3589
|
-
function createUseFsEventsOnParentDirectoryWatchFile(fsWatch,
|
|
3589
|
+
function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2) {
|
|
3590
3590
|
const fileWatcherCallbacks = createMultiMap();
|
|
3591
3591
|
const dirWatchers = /* @__PURE__ */ new Map();
|
|
3592
|
-
const toCanonicalName = createGetCanonicalFileName(
|
|
3592
|
+
const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
|
|
3593
3593
|
return nonPollingWatchFile;
|
|
3594
3594
|
function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {
|
|
3595
3595
|
const filePath = toCanonicalName(fileName);
|
|
@@ -3665,8 +3665,8 @@ function createFixedChunkSizePollingWatchFile(host) {
|
|
|
3665
3665
|
pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue");
|
|
3666
3666
|
}
|
|
3667
3667
|
}
|
|
3668
|
-
function createSingleWatcherPerName(cache,
|
|
3669
|
-
const toCanonicalFileName = createGetCanonicalFileName(
|
|
3668
|
+
function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) {
|
|
3669
|
+
const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
|
|
3670
3670
|
const path2 = toCanonicalFileName(name);
|
|
3671
3671
|
const existing = cache.get(path2);
|
|
3672
3672
|
if (existing) {
|
|
@@ -3715,7 +3715,7 @@ function sysLog(s) {
|
|
|
3715
3715
|
}
|
|
3716
3716
|
function createDirectoryWatcherSupportingRecursive({
|
|
3717
3717
|
watchDirectory,
|
|
3718
|
-
useCaseSensitiveFileNames,
|
|
3718
|
+
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
3719
3719
|
getCurrentDirectory,
|
|
3720
3720
|
getAccessibleSortedChildDirectories,
|
|
3721
3721
|
fileSystemEntryExists,
|
|
@@ -3727,8 +3727,8 @@ function createDirectoryWatcherSupportingRecursive({
|
|
|
3727
3727
|
const callbackCache = createMultiMap();
|
|
3728
3728
|
const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();
|
|
3729
3729
|
let timerToUpdateChildWatches;
|
|
3730
|
-
const filePathComparer = getStringComparer(!
|
|
3731
|
-
const toCanonicalFilePath = createGetCanonicalFileName(
|
|
3730
|
+
const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2);
|
|
3731
|
+
const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2);
|
|
3732
3732
|
return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options);
|
|
3733
3733
|
function createDirectoryWatcher(dirName, options, callback) {
|
|
3734
3734
|
const dirPath = toCanonicalFilePath(dirName);
|
|
@@ -3895,12 +3895,12 @@ function createDirectoryWatcherSupportingRecursive({
|
|
|
3895
3895
|
}
|
|
3896
3896
|
}
|
|
3897
3897
|
function isIgnoredPath(path2, options) {
|
|
3898
|
-
return some(ignoredPaths, (searchPath) => isInPath(path2, searchPath)) || isIgnoredByWatchOptions(path2, options,
|
|
3898
|
+
return some(ignoredPaths, (searchPath) => isInPath(path2, searchPath)) || isIgnoredByWatchOptions(path2, options, useCaseSensitiveFileNames2, getCurrentDirectory);
|
|
3899
3899
|
}
|
|
3900
3900
|
function isInPath(path2, searchPath) {
|
|
3901
3901
|
if (stringContains(path2, searchPath))
|
|
3902
3902
|
return true;
|
|
3903
|
-
if (
|
|
3903
|
+
if (useCaseSensitiveFileNames2)
|
|
3904
3904
|
return false;
|
|
3905
3905
|
return stringContains(toCanonicalFilePath(path2), searchPath);
|
|
3906
3906
|
}
|
|
@@ -3918,14 +3918,14 @@ function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModi
|
|
|
3918
3918
|
}
|
|
3919
3919
|
};
|
|
3920
3920
|
}
|
|
3921
|
-
function isIgnoredByWatchOptions(pathToCheck, options,
|
|
3922
|
-
return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles,
|
|
3921
|
+
function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) {
|
|
3922
|
+
return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory()));
|
|
3923
3923
|
}
|
|
3924
|
-
function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options,
|
|
3924
|
+
function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) {
|
|
3925
3925
|
return (eventName, relativeFileName) => {
|
|
3926
3926
|
if (eventName === "rename") {
|
|
3927
3927
|
const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName));
|
|
3928
|
-
if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options,
|
|
3928
|
+
if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) {
|
|
3929
3929
|
callback(fileName);
|
|
3930
3930
|
}
|
|
3931
3931
|
}
|
|
@@ -3938,7 +3938,7 @@ function createSystemWatchFunctions({
|
|
|
3938
3938
|
clearTimeout: clearTimeout2,
|
|
3939
3939
|
fsWatchWorker,
|
|
3940
3940
|
fileSystemEntryExists,
|
|
3941
|
-
useCaseSensitiveFileNames,
|
|
3941
|
+
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
3942
3942
|
getCurrentDirectory,
|
|
3943
3943
|
fsSupportsRecursiveFsWatch,
|
|
3944
3944
|
getAccessibleSortedChildDirectories,
|
|
@@ -4010,7 +4010,7 @@ function createSystemWatchFunctions({
|
|
|
4010
4010
|
);
|
|
4011
4011
|
case 5 /* UseFsEventsOnParentDirectory */:
|
|
4012
4012
|
if (!nonPollingWatchFile) {
|
|
4013
|
-
nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch,
|
|
4013
|
+
nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2);
|
|
4014
4014
|
}
|
|
4015
4015
|
return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options));
|
|
4016
4016
|
default:
|
|
@@ -4059,7 +4059,7 @@ function createSystemWatchFunctions({
|
|
|
4059
4059
|
return fsWatch(
|
|
4060
4060
|
directoryName,
|
|
4061
4061
|
1 /* Directory */,
|
|
4062
|
-
createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options,
|
|
4062
|
+
createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory),
|
|
4063
4063
|
recursive,
|
|
4064
4064
|
500 /* Medium */,
|
|
4065
4065
|
getFallbackOptions(options)
|
|
@@ -4067,7 +4067,7 @@ function createSystemWatchFunctions({
|
|
|
4067
4067
|
}
|
|
4068
4068
|
if (!hostRecursiveDirectoryWatcher) {
|
|
4069
4069
|
hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({
|
|
4070
|
-
useCaseSensitiveFileNames,
|
|
4070
|
+
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
4071
4071
|
getCurrentDirectory,
|
|
4072
4072
|
fileSystemEntryExists,
|
|
4073
4073
|
getAccessibleSortedChildDirectories,
|
|
@@ -4113,7 +4113,7 @@ function createSystemWatchFunctions({
|
|
|
4113
4113
|
return fsWatch(
|
|
4114
4114
|
directoryName,
|
|
4115
4115
|
1 /* Directory */,
|
|
4116
|
-
createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options,
|
|
4116
|
+
createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory),
|
|
4117
4117
|
recursive,
|
|
4118
4118
|
500 /* Medium */,
|
|
4119
4119
|
getFallbackOptions(watchDirectoryOptions)
|
|
@@ -4141,7 +4141,7 @@ function createSystemWatchFunctions({
|
|
|
4141
4141
|
function pollingWatchFile(fileName, callback, pollingInterval, options) {
|
|
4142
4142
|
return createSingleWatcherPerName(
|
|
4143
4143
|
pollingWatches,
|
|
4144
|
-
|
|
4144
|
+
useCaseSensitiveFileNames2,
|
|
4145
4145
|
fileName,
|
|
4146
4146
|
callback,
|
|
4147
4147
|
(cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options)
|
|
@@ -4150,7 +4150,7 @@ function createSystemWatchFunctions({
|
|
|
4150
4150
|
function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {
|
|
4151
4151
|
return createSingleWatcherPerName(
|
|
4152
4152
|
recursive ? fsWatchesRecursive : fsWatches,
|
|
4153
|
-
|
|
4153
|
+
useCaseSensitiveFileNames2,
|
|
4154
4154
|
fileOrDirectory,
|
|
4155
4155
|
callback,
|
|
4156
4156
|
(cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions)
|
|
@@ -4278,7 +4278,7 @@ var sys = (() => {
|
|
|
4278
4278
|
const Buffer2 = require("buffer").Buffer;
|
|
4279
4279
|
const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
|
|
4280
4280
|
const platform = _os.platform();
|
|
4281
|
-
const
|
|
4281
|
+
const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
|
|
4282
4282
|
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
|
4283
4283
|
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
|
4284
4284
|
const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
|
|
@@ -4289,7 +4289,7 @@ var sys = (() => {
|
|
|
4289
4289
|
setTimeout,
|
|
4290
4290
|
clearTimeout,
|
|
4291
4291
|
fsWatchWorker,
|
|
4292
|
-
useCaseSensitiveFileNames,
|
|
4292
|
+
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
4293
4293
|
getCurrentDirectory,
|
|
4294
4294
|
fileSystemEntryExists,
|
|
4295
4295
|
// Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows
|
|
@@ -4306,7 +4306,7 @@ var sys = (() => {
|
|
|
4306
4306
|
const nodeSystem = {
|
|
4307
4307
|
args: process.argv.slice(2),
|
|
4308
4308
|
newLine: _os.EOL,
|
|
4309
|
-
useCaseSensitiveFileNames,
|
|
4309
|
+
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
4310
4310
|
write(s) {
|
|
4311
4311
|
process.stdout.write(s);
|
|
4312
4312
|
},
|
|
@@ -4435,12 +4435,12 @@ var sys = (() => {
|
|
|
4435
4435
|
for (const node of profile.nodes) {
|
|
4436
4436
|
if (node.callFrame.url) {
|
|
4437
4437
|
const url = normalizeSlashes(node.callFrame.url);
|
|
4438
|
-
if (containsPath(fileUrlRoot, url,
|
|
4438
|
+
if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) {
|
|
4439
4439
|
node.callFrame.url = getRelativePathToDirectoryOrUrl(
|
|
4440
4440
|
fileUrlRoot,
|
|
4441
4441
|
url,
|
|
4442
4442
|
fileUrlRoot,
|
|
4443
|
-
createGetCanonicalFileName(
|
|
4443
|
+
createGetCanonicalFileName(useCaseSensitiveFileNames2),
|
|
4444
4444
|
/*isAbsolutePathAnUrl*/
|
|
4445
4445
|
true
|
|
4446
4446
|
);
|
|
@@ -4620,7 +4620,7 @@ var sys = (() => {
|
|
|
4620
4620
|
}
|
|
4621
4621
|
}
|
|
4622
4622
|
function readDirectory(path2, extensions, excludes, includes, depth) {
|
|
4623
|
-
return matchFiles(path2, extensions, excludes, includes,
|
|
4623
|
+
return matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
4624
4624
|
}
|
|
4625
4625
|
function fileSystemEntryExists(path2, entryKind) {
|
|
4626
4626
|
const originalStackTraceLimit = Error.stackTraceLimit;
|
|
@@ -5091,7 +5091,7 @@ var Diagnostics = {
|
|
|
5091
5091
|
Identifier_expected: diag(1003, 1 /* Error */, "Identifier_expected_1003", "Identifier expected."),
|
|
5092
5092
|
_0_expected: diag(1005, 1 /* Error */, "_0_expected_1005", "'{0}' expected."),
|
|
5093
5093
|
A_file_cannot_have_a_reference_to_itself: diag(1006, 1 /* Error */, "A_file_cannot_have_a_reference_to_itself_1006", "A file cannot have a reference to itself."),
|
|
5094
|
-
|
|
5094
|
+
The_parser_expected_to_find_a_1_to_match_the_0_token_here: diag(1007, 1 /* Error */, "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007", "The parser expected to find a '{1}' to match the '{0}' token here."),
|
|
5095
5095
|
Trailing_comma_not_allowed: diag(1009, 1 /* Error */, "Trailing_comma_not_allowed_1009", "Trailing comma not allowed."),
|
|
5096
5096
|
Asterisk_Slash_expected: diag(1010, 1 /* Error */, "Asterisk_Slash_expected_1010", "'*/' expected."),
|
|
5097
5097
|
An_element_access_expression_should_take_an_argument: diag(1011, 1 /* Error */, "An_element_access_expression_should_take_an_argument_1011", "An element access expression should take an argument."),
|
|
@@ -5353,7 +5353,7 @@ var Diagnostics = {
|
|
|
5353
5353
|
unique_symbol_types_are_not_allowed_here: diag(1335, 1 /* Error */, "unique_symbol_types_are_not_allowed_here_1335", "'unique symbol' types are not allowed here."),
|
|
5354
5354
|
An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead: diag(1337, 1 /* Error */, "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337", "An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),
|
|
5355
5355
|
infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, 1 /* Error */, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
|
|
5356
|
-
|
|
5356
|
+
Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1 /* Error */, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
|
|
5357
5357
|
Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1 /* Error */, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
|
|
5358
5358
|
Class_constructor_may_not_be_an_accessor: diag(1341, 1 /* Error */, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
|
|
5359
5359
|
The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, 1 /* Error */, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
|
|
@@ -5361,7 +5361,7 @@ var Diagnostics = {
|
|
|
5361
5361
|
An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1 /* Error */, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."),
|
|
5362
5362
|
This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1 /* Error */, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."),
|
|
5363
5363
|
use_strict_directive_cannot_be_used_with_non_simple_parameter_list: diag(1347, 1 /* Error */, "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347", "'use strict' directive cannot be used with non-simple parameter list."),
|
|
5364
|
-
|
|
5364
|
+
Non_simple_parameter_declared_here: diag(1348, 1 /* Error */, "Non_simple_parameter_declared_here_1348", "Non-simple parameter declared here."),
|
|
5365
5365
|
use_strict_directive_used_here: diag(1349, 1 /* Error */, "use_strict_directive_used_here_1349", "'use strict' directive used here."),
|
|
5366
5366
|
Print_the_final_configuration_instead_of_building: diag(1350, 3 /* Message */, "Print_the_final_configuration_instead_of_building_1350", "Print the final configuration instead of building."),
|
|
5367
5367
|
An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal: diag(1351, 1 /* Error */, "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351", "An identifier or keyword cannot immediately follow a numeric literal."),
|
|
@@ -5385,8 +5385,8 @@ var Diagnostics = {
|
|
|
5385
5385
|
Did_you_mean_0: diag(1369, 3 /* Message */, "Did_you_mean_0_1369", "Did you mean '{0}'?"),
|
|
5386
5386
|
This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1 /* Error */, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),
|
|
5387
5387
|
await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
|
|
5388
|
-
|
|
5389
|
-
|
|
5388
|
+
_0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."),
|
|
5389
|
+
_0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."),
|
|
5390
5390
|
Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1 /* Error */, "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378", "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),
|
|
5391
5391
|
An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: diag(1379, 1 /* Error */, "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379", "An import alias cannot reference a declaration that was exported using 'export type'."),
|
|
5392
5392
|
An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: diag(1380, 1 /* Error */, "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380", "An import alias cannot reference a declaration that was imported using 'import type'."),
|
|
@@ -5405,34 +5405,34 @@ var Diagnostics = {
|
|
|
5405
5405
|
Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions: diag(1396, 3 /* Message */, "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396", "Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),
|
|
5406
5406
|
Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions: diag(1397, 3 /* Message */, "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397", "Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),
|
|
5407
5407
|
Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions: diag(1398, 3 /* Message */, "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398", "Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),
|
|
5408
|
-
|
|
5408
|
+
File_is_included_via_import_here: diag(1399, 3 /* Message */, "File_is_included_via_import_here_1399", "File is included via import here."),
|
|
5409
5409
|
Referenced_via_0_from_file_1: diag(1400, 3 /* Message */, "Referenced_via_0_from_file_1_1400", "Referenced via '{0}' from file '{1}'"),
|
|
5410
|
-
|
|
5410
|
+
File_is_included_via_reference_here: diag(1401, 3 /* Message */, "File_is_included_via_reference_here_1401", "File is included via reference here."),
|
|
5411
5411
|
Type_library_referenced_via_0_from_file_1: diag(1402, 3 /* Message */, "Type_library_referenced_via_0_from_file_1_1402", "Type library referenced via '{0}' from file '{1}'"),
|
|
5412
5412
|
Type_library_referenced_via_0_from_file_1_with_packageId_2: diag(1403, 3 /* Message */, "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403", "Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),
|
|
5413
|
-
|
|
5413
|
+
File_is_included_via_type_library_reference_here: diag(1404, 3 /* Message */, "File_is_included_via_type_library_reference_here_1404", "File is included via type library reference here."),
|
|
5414
5414
|
Library_referenced_via_0_from_file_1: diag(1405, 3 /* Message */, "Library_referenced_via_0_from_file_1_1405", "Library referenced via '{0}' from file '{1}'"),
|
|
5415
|
-
|
|
5415
|
+
File_is_included_via_library_reference_here: diag(1406, 3 /* Message */, "File_is_included_via_library_reference_here_1406", "File is included via library reference here."),
|
|
5416
5416
|
Matched_by_include_pattern_0_in_1: diag(1407, 3 /* Message */, "Matched_by_include_pattern_0_in_1_1407", "Matched by include pattern '{0}' in '{1}'"),
|
|
5417
|
-
|
|
5417
|
+
File_is_matched_by_include_pattern_specified_here: diag(1408, 3 /* Message */, "File_is_matched_by_include_pattern_specified_here_1408", "File is matched by include pattern specified here."),
|
|
5418
5418
|
Part_of_files_list_in_tsconfig_json: diag(1409, 3 /* Message */, "Part_of_files_list_in_tsconfig_json_1409", "Part of 'files' list in tsconfig.json"),
|
|
5419
|
-
|
|
5419
|
+
File_is_matched_by_files_list_specified_here: diag(1410, 3 /* Message */, "File_is_matched_by_files_list_specified_here_1410", "File is matched by 'files' list specified here."),
|
|
5420
5420
|
Output_from_referenced_project_0_included_because_1_specified: diag(1411, 3 /* Message */, "Output_from_referenced_project_0_included_because_1_specified_1411", "Output from referenced project '{0}' included because '{1}' specified"),
|
|
5421
5421
|
Output_from_referenced_project_0_included_because_module_is_specified_as_none: diag(1412, 3 /* Message */, "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412", "Output from referenced project '{0}' included because '--module' is specified as 'none'"),
|
|
5422
|
-
|
|
5422
|
+
File_is_output_from_referenced_project_specified_here: diag(1413, 3 /* Message */, "File_is_output_from_referenced_project_specified_here_1413", "File is output from referenced project specified here."),
|
|
5423
5423
|
Source_from_referenced_project_0_included_because_1_specified: diag(1414, 3 /* Message */, "Source_from_referenced_project_0_included_because_1_specified_1414", "Source from referenced project '{0}' included because '{1}' specified"),
|
|
5424
5424
|
Source_from_referenced_project_0_included_because_module_is_specified_as_none: diag(1415, 3 /* Message */, "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415", "Source from referenced project '{0}' included because '--module' is specified as 'none'"),
|
|
5425
|
-
|
|
5425
|
+
File_is_source_from_referenced_project_specified_here: diag(1416, 3 /* Message */, "File_is_source_from_referenced_project_specified_here_1416", "File is source from referenced project specified here."),
|
|
5426
5426
|
Entry_point_of_type_library_0_specified_in_compilerOptions: diag(1417, 3 /* Message */, "Entry_point_of_type_library_0_specified_in_compilerOptions_1417", "Entry point of type library '{0}' specified in compilerOptions"),
|
|
5427
5427
|
Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1: diag(1418, 3 /* Message */, "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418", "Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),
|
|
5428
|
-
|
|
5428
|
+
File_is_entry_point_of_type_library_specified_here: diag(1419, 3 /* Message */, "File_is_entry_point_of_type_library_specified_here_1419", "File is entry point of type library specified here."),
|
|
5429
5429
|
Entry_point_for_implicit_type_library_0: diag(1420, 3 /* Message */, "Entry_point_for_implicit_type_library_0_1420", "Entry point for implicit type library '{0}'"),
|
|
5430
5430
|
Entry_point_for_implicit_type_library_0_with_packageId_1: diag(1421, 3 /* Message */, "Entry_point_for_implicit_type_library_0_with_packageId_1_1421", "Entry point for implicit type library '{0}' with packageId '{1}'"),
|
|
5431
5431
|
Library_0_specified_in_compilerOptions: diag(1422, 3 /* Message */, "Library_0_specified_in_compilerOptions_1422", "Library '{0}' specified in compilerOptions"),
|
|
5432
|
-
|
|
5432
|
+
File_is_library_specified_here: diag(1423, 3 /* Message */, "File_is_library_specified_here_1423", "File is library specified here."),
|
|
5433
5433
|
Default_library: diag(1424, 3 /* Message */, "Default_library_1424", "Default library"),
|
|
5434
5434
|
Default_library_for_target_0: diag(1425, 3 /* Message */, "Default_library_for_target_0_1425", "Default library for target '{0}'"),
|
|
5435
|
-
|
|
5435
|
+
File_is_default_library_for_target_specified_here: diag(1426, 3 /* Message */, "File_is_default_library_for_target_specified_here_1426", "File is default library for target specified here."),
|
|
5436
5436
|
Root_file_specified_for_compilation: diag(1427, 3 /* Message */, "Root_file_specified_for_compilation_1427", "Root file specified for compilation"),
|
|
5437
5437
|
File_is_output_of_project_reference_source_0: diag(1428, 3 /* Message */, "File_is_output_of_project_reference_source_0_1428", "File is output of project reference source '{0}'"),
|
|
5438
5438
|
File_redirects_to_file_0: diag(1429, 3 /* Message */, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"),
|
|
@@ -5885,7 +5885,7 @@ var Diagnostics = {
|
|
|
5885
5885
|
Cannot_extend_an_interface_0_Did_you_mean_implements: diag(2689, 1 /* Error */, "Cannot_extend_an_interface_0_Did_you_mean_implements_2689", "Cannot extend an interface '{0}'. Did you mean 'implements'?"),
|
|
5886
5886
|
_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0: diag(2690, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690", "'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),
|
|
5887
5887
|
_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible: diag(2692, 1 /* Error */, "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692", "'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),
|
|
5888
|
-
|
|
5888
|
+
_0_only_refers_to_a_type_but_is_being_used_as_a_value_here: diag(2693, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693", "'{0}' only refers to a type, but is being used as a value here."),
|
|
5889
5889
|
Namespace_0_has_no_exported_member_1: diag(2694, 1 /* Error */, "Namespace_0_has_no_exported_member_1_2694", "Namespace '{0}' has no exported member '{1}'."),
|
|
5890
5890
|
Left_side_of_comma_operator_is_unused_and_has_no_side_effects: diag(
|
|
5891
5891
|
2695,
|
|
@@ -5901,7 +5901,7 @@ var Diagnostics = {
|
|
|
5901
5901
|
Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1: diag(2699, 1 /* Error */, "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699", "Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),
|
|
5902
5902
|
Rest_types_may_only_be_created_from_object_types: diag(2700, 1 /* Error */, "Rest_types_may_only_be_created_from_object_types_2700", "Rest types may only be created from object types."),
|
|
5903
5903
|
The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access: diag(2701, 1 /* Error */, "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701", "The target of an object rest assignment must be a variable or a property access."),
|
|
5904
|
-
|
|
5904
|
+
_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: diag(2702, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702", "'{0}' only refers to a type, but is being used as a namespace here."),
|
|
5905
5905
|
The_operand_of_a_delete_operator_must_be_a_property_reference: diag(2703, 1 /* Error */, "The_operand_of_a_delete_operator_must_be_a_property_reference_2703", "The operand of a 'delete' operator must be a property reference."),
|
|
5906
5906
|
The_operand_of_a_delete_operator_cannot_be_a_read_only_property: diag(2704, 1 /* Error */, "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704", "The operand of a 'delete' operator cannot be a read-only property."),
|
|
5907
5907
|
An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2705, 1 /* Error */, "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705", "An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),
|
|
@@ -5927,12 +5927,12 @@ var Diagnostics = {
|
|
|
5927
5927
|
Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: diag(2725, 1 /* Error */, "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725", "Class name cannot be 'Object' when targeting ES5 with module {0}."),
|
|
5928
5928
|
Cannot_find_lib_definition_for_0: diag(2726, 1 /* Error */, "Cannot_find_lib_definition_for_0_2726", "Cannot find lib definition for '{0}'."),
|
|
5929
5929
|
Cannot_find_lib_definition_for_0_Did_you_mean_1: diag(2727, 1 /* Error */, "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727", "Cannot find lib definition for '{0}'. Did you mean '{1}'?"),
|
|
5930
|
-
|
|
5930
|
+
_0_is_declared_here: diag(2728, 3 /* Message */, "_0_is_declared_here_2728", "'{0}' is declared here."),
|
|
5931
5931
|
Property_0_is_used_before_its_initialization: diag(2729, 1 /* Error */, "Property_0_is_used_before_its_initialization_2729", "Property '{0}' is used before its initialization."),
|
|
5932
5932
|
An_arrow_function_cannot_have_a_this_parameter: diag(2730, 1 /* Error */, "An_arrow_function_cannot_have_a_this_parameter_2730", "An arrow function cannot have a 'this' parameter."),
|
|
5933
5933
|
Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String: diag(2731, 1 /* Error */, "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731", "Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),
|
|
5934
5934
|
Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension: diag(2732, 1 /* Error */, "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732", "Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),
|
|
5935
|
-
|
|
5935
|
+
Property_0_was_also_declared_here: diag(2733, 1 /* Error */, "Property_0_was_also_declared_here_2733", "Property '{0}' was also declared here."),
|
|
5936
5936
|
Are_you_missing_a_semicolon: diag(2734, 1 /* Error */, "Are_you_missing_a_semicolon_2734", "Are you missing a semicolon?"),
|
|
5937
5937
|
Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: diag(2735, 1 /* Error */, "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735", "Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),
|
|
5938
5938
|
Operator_0_cannot_be_applied_to_type_1: diag(2736, 1 /* Error */, "Operator_0_cannot_be_applied_to_type_1_2736", "Operator '{0}' cannot be applied to type '{1}'."),
|
|
@@ -5949,10 +5949,10 @@ var Diagnostics = {
|
|
|
5949
5949
|
_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2: diag(2747, 1 /* Error */, "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747", "'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),
|
|
5950
5950
|
Cannot_access_ambient_const_enums_when_0_is_enabled: diag(2748, 1 /* Error */, "Cannot_access_ambient_const_enums_when_0_is_enabled_2748", "Cannot access ambient const enums when '{0}' is enabled."),
|
|
5951
5951
|
_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0: diag(2749, 1 /* Error */, "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749", "'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),
|
|
5952
|
-
|
|
5952
|
+
The_implementation_signature_is_declared_here: diag(2750, 1 /* Error */, "The_implementation_signature_is_declared_here_2750", "The implementation signature is declared here."),
|
|
5953
5953
|
Circularity_originates_in_type_at_this_location: diag(2751, 1 /* Error */, "Circularity_originates_in_type_at_this_location_2751", "Circularity originates in type at this location."),
|
|
5954
|
-
|
|
5955
|
-
|
|
5954
|
+
The_first_export_default_is_here: diag(2752, 1 /* Error */, "The_first_export_default_is_here_2752", "The first export default is here."),
|
|
5955
|
+
Another_export_default_is_here: diag(2753, 1 /* Error */, "Another_export_default_is_here_2753", "Another export default is here."),
|
|
5956
5956
|
super_may_not_use_type_arguments: diag(2754, 1 /* Error */, "super_may_not_use_type_arguments_2754", "'super' may not use type arguments."),
|
|
5957
5957
|
No_constituent_of_type_0_is_callable: diag(2755, 1 /* Error */, "No_constituent_of_type_0_is_callable_2755", "No constituent of type '{0}' is callable."),
|
|
5958
5958
|
Not_all_constituents_of_type_0_are_callable: diag(2756, 1 /* Error */, "Not_all_constituents_of_type_0_are_callable_2756", "Not all constituents of type '{0}' are callable."),
|
|
@@ -5970,7 +5970,7 @@ var Diagnostics = {
|
|
|
5970
5970
|
The_0_property_of_an_async_iterator_must_be_a_method: diag(2768, 1 /* Error */, "The_0_property_of_an_async_iterator_must_be_a_method_2768", "The '{0}' property of an async iterator must be a method."),
|
|
5971
5971
|
No_overload_matches_this_call: diag(2769, 1 /* Error */, "No_overload_matches_this_call_2769", "No overload matches this call."),
|
|
5972
5972
|
The_last_overload_gave_the_following_error: diag(2770, 1 /* Error */, "The_last_overload_gave_the_following_error_2770", "The last overload gave the following error."),
|
|
5973
|
-
|
|
5973
|
+
The_last_overload_is_declared_here: diag(2771, 1 /* Error */, "The_last_overload_is_declared_here_2771", "The last overload is declared here."),
|
|
5974
5974
|
Overload_0_of_1_2_gave_the_following_error: diag(2772, 1 /* Error */, "Overload_0_of_1_2_gave_the_following_error_2772", "Overload {0} of {1}, '{2}', gave the following error."),
|
|
5975
5975
|
Did_you_forget_to_use_await: diag(2773, 1 /* Error */, "Did_you_forget_to_use_await_2773", "Did you forget to use 'await'?"),
|
|
5976
5976
|
This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead: diag(2774, 1 /* Error */, "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774", "This condition will always return true since this function is always defined. Did you mean to call it instead?"),
|
|
@@ -5997,7 +5997,7 @@ var Diagnostics = {
|
|
|
5997
5997
|
The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types: diag(2795, 1 /* Error */, "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795", "The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),
|
|
5998
5998
|
It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked: diag(2796, 1 /* Error */, "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796", "It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),
|
|
5999
5999
|
A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract: diag(2797, 1 /* Error */, "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797", "A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),
|
|
6000
|
-
|
|
6000
|
+
The_declaration_was_marked_as_deprecated_here: diag(2798, 1 /* Error */, "The_declaration_was_marked_as_deprecated_here_2798", "The declaration was marked as deprecated here."),
|
|
6001
6001
|
Type_produces_a_tuple_type_that_is_too_large_to_represent: diag(2799, 1 /* Error */, "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799", "Type produces a tuple type that is too large to represent."),
|
|
6002
6002
|
Expression_produces_a_tuple_type_that_is_too_large_to_represent: diag(2800, 1 /* Error */, "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800", "Expression produces a tuple type that is too large to represent."),
|
|
6003
6003
|
This_condition_will_always_return_true_since_this_0_is_always_defined: diag(2801, 1 /* Error */, "This_condition_will_always_return_true_since_this_0_is_always_defined_2801", "This condition will always return true since this '{0}' is always defined."),
|
|
@@ -6434,8 +6434,8 @@ var Diagnostics = {
|
|
|
6434
6434
|
Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0: diag(6200, 1 /* Error */, "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200", "Definitions of the following identifiers conflict with those in another file: {0}"),
|
|
6435
6435
|
Conflicts_are_in_this_file: diag(6201, 3 /* Message */, "Conflicts_are_in_this_file_6201", "Conflicts are in this file."),
|
|
6436
6436
|
Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0: diag(6202, 1 /* Error */, "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202", "Project references may not form a circular graph. Cycle detected: {0}"),
|
|
6437
|
-
|
|
6438
|
-
|
|
6437
|
+
_0_was_also_declared_here: diag(6203, 3 /* Message */, "_0_was_also_declared_here_6203", "'{0}' was also declared here."),
|
|
6438
|
+
and_here: diag(6204, 3 /* Message */, "and_here_6204", "and here."),
|
|
6439
6439
|
All_type_parameters_are_unused: diag(6205, 1 /* Error */, "All_type_parameters_are_unused_6205", "All type parameters are unused."),
|
|
6440
6440
|
package_json_has_a_typesVersions_field_with_version_specific_path_mappings: diag(6206, 3 /* Message */, "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206", "'package.json' has a 'typesVersions' field with version-specific path mappings."),
|
|
6441
6441
|
package_json_does_not_have_a_typesVersions_entry_that_matches_version_0: diag(6207, 3 /* Message */, "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207", "'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),
|
|
@@ -6855,7 +6855,7 @@ var Diagnostics = {
|
|
|
6855
6855
|
You_cannot_rename_a_module_via_a_global_import: diag(8031, 1 /* Error */, "You_cannot_rename_a_module_via_a_global_import_8031", "You cannot rename a module via a global import."),
|
|
6856
6856
|
Qualified_name_0_is_not_allowed_without_a_leading_param_object_1: diag(8032, 1 /* Error */, "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032", "Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),
|
|
6857
6857
|
A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags: diag(8033, 1 /* Error */, "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033", "A JSDoc '@typedef' comment may not contain multiple '@type' tags."),
|
|
6858
|
-
|
|
6858
|
+
The_tag_was_first_specified_here: diag(8034, 1 /* Error */, "The_tag_was_first_specified_here_8034", "The tag was first specified here."),
|
|
6859
6859
|
You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder: diag(8035, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035", "You cannot rename elements that are defined in a 'node_modules' folder."),
|
|
6860
6860
|
You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder: diag(8036, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036", "You cannot rename elements that are defined in another 'node_modules' folder."),
|
|
6861
6861
|
Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files: diag(8037, 1 /* Error */, "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037", "Type satisfaction expressions can only be used in TypeScript files."),
|
|
@@ -7890,7 +7890,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
7890
7890
|
if (withMinus)
|
|
7891
7891
|
start2--;
|
|
7892
7892
|
error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal);
|
|
7893
|
-
return
|
|
7893
|
+
return 9 /* NumericLiteral */;
|
|
7894
7894
|
}
|
|
7895
7895
|
} else {
|
|
7896
7896
|
mainFragment = scanNumberFragment();
|
|
@@ -7930,20 +7930,18 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
7930
7930
|
}
|
|
7931
7931
|
if (tokenFlags & 8192 /* ContainsLeadingZero */) {
|
|
7932
7932
|
error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2);
|
|
7933
|
-
|
|
7933
|
+
tokenValue = "" + +result;
|
|
7934
|
+
return 9 /* NumericLiteral */;
|
|
7934
7935
|
}
|
|
7935
7936
|
if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) {
|
|
7936
7937
|
checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */));
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
value: "" + +result
|
|
7940
|
-
// if value is not an integer, it can be safely coerced to a number
|
|
7941
|
-
};
|
|
7938
|
+
tokenValue = "" + +result;
|
|
7939
|
+
return 9 /* NumericLiteral */;
|
|
7942
7940
|
} else {
|
|
7943
7941
|
tokenValue = result;
|
|
7944
7942
|
const type = checkBigIntSuffix();
|
|
7945
7943
|
checkForIdentifierStartAfterNumericLiteral(start2);
|
|
7946
|
-
return
|
|
7944
|
+
return type;
|
|
7947
7945
|
}
|
|
7948
7946
|
}
|
|
7949
7947
|
function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) {
|
|
@@ -8552,7 +8550,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
8552
8550
|
return token = 41 /* MinusToken */;
|
|
8553
8551
|
case 46 /* dot */:
|
|
8554
8552
|
if (isDigit(text.charCodeAt(pos + 1))) {
|
|
8555
|
-
|
|
8553
|
+
scanNumber();
|
|
8556
8554
|
return token = 9 /* NumericLiteral */;
|
|
8557
8555
|
}
|
|
8558
8556
|
if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) {
|
|
@@ -8670,8 +8668,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
8670
8668
|
case 55 /* _7 */:
|
|
8671
8669
|
case 56 /* _8 */:
|
|
8672
8670
|
case 57 /* _9 */:
|
|
8673
|
-
|
|
8674
|
-
return token;
|
|
8671
|
+
return token = scanNumber();
|
|
8675
8672
|
case 58 /* colon */:
|
|
8676
8673
|
pos++;
|
|
8677
8674
|
return token = 59 /* ColonToken */;
|
|
@@ -11303,6 +11300,9 @@ function getResolveJsonModule(compilerOptions) {
|
|
|
11303
11300
|
}
|
|
11304
11301
|
return getEmitModuleResolutionKind(compilerOptions) === 100 /* Bundler */;
|
|
11305
11302
|
}
|
|
11303
|
+
function getAllowJSCompilerOption(compilerOptions) {
|
|
11304
|
+
return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs;
|
|
11305
|
+
}
|
|
11306
11306
|
var reservedCharacterPattern = /[^\w\s\/]/g;
|
|
11307
11307
|
var wildcardCharCodes = [42 /* asterisk */, 63 /* question */];
|
|
11308
11308
|
var commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
|
|
@@ -11412,7 +11412,7 @@ function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragm
|
|
|
11412
11412
|
function replaceWildcardCharacter(match, singleAsteriskRegexFragment) {
|
|
11413
11413
|
return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match;
|
|
11414
11414
|
}
|
|
11415
|
-
function getFileMatcherPatterns(path2, excludes, includes,
|
|
11415
|
+
function getFileMatcherPatterns(path2, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) {
|
|
11416
11416
|
path2 = normalizePath(path2);
|
|
11417
11417
|
currentDirectory = normalizePath(currentDirectory);
|
|
11418
11418
|
const absolutePath = combinePaths(currentDirectory, path2);
|
|
@@ -11421,22 +11421,22 @@ function getFileMatcherPatterns(path2, excludes, includes, useCaseSensitiveFileN
|
|
|
11421
11421
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
11422
11422
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
11423
11423
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
11424
|
-
basePaths: getBasePaths(path2, includes,
|
|
11424
|
+
basePaths: getBasePaths(path2, includes, useCaseSensitiveFileNames2)
|
|
11425
11425
|
};
|
|
11426
11426
|
}
|
|
11427
|
-
function getRegexFromPattern(pattern,
|
|
11428
|
-
return new RegExp(pattern,
|
|
11427
|
+
function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) {
|
|
11428
|
+
return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i");
|
|
11429
11429
|
}
|
|
11430
|
-
function matchFiles(path2, extensions, excludes, includes,
|
|
11430
|
+
function matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) {
|
|
11431
11431
|
path2 = normalizePath(path2);
|
|
11432
11432
|
currentDirectory = normalizePath(currentDirectory);
|
|
11433
|
-
const patterns = getFileMatcherPatterns(path2, excludes, includes,
|
|
11434
|
-
const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern,
|
|
11435
|
-
const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern,
|
|
11436
|
-
const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern,
|
|
11433
|
+
const patterns = getFileMatcherPatterns(path2, excludes, includes, useCaseSensitiveFileNames2, currentDirectory);
|
|
11434
|
+
const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2));
|
|
11435
|
+
const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2);
|
|
11436
|
+
const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2);
|
|
11437
11437
|
const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];
|
|
11438
11438
|
const visited = /* @__PURE__ */ new Map();
|
|
11439
|
-
const toCanonical = createGetCanonicalFileName(
|
|
11439
|
+
const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2);
|
|
11440
11440
|
for (const basePath of patterns.basePaths) {
|
|
11441
11441
|
visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);
|
|
11442
11442
|
}
|
|
@@ -11478,7 +11478,7 @@ function matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileN
|
|
|
11478
11478
|
}
|
|
11479
11479
|
}
|
|
11480
11480
|
}
|
|
11481
|
-
function getBasePaths(path2, includes,
|
|
11481
|
+
function getBasePaths(path2, includes, useCaseSensitiveFileNames2) {
|
|
11482
11482
|
const basePaths = [path2];
|
|
11483
11483
|
if (includes) {
|
|
11484
11484
|
const includeBasePaths = [];
|
|
@@ -11486,9 +11486,9 @@ function getBasePaths(path2, includes, useCaseSensitiveFileNames) {
|
|
|
11486
11486
|
const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path2, include));
|
|
11487
11487
|
includeBasePaths.push(getIncludeBasePath(absolute));
|
|
11488
11488
|
}
|
|
11489
|
-
includeBasePaths.sort(getStringComparer(!
|
|
11489
|
+
includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2));
|
|
11490
11490
|
for (const includeBasePath of includeBasePaths) {
|
|
11491
|
-
if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path2, !
|
|
11491
|
+
if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path2, !useCaseSensitiveFileNames2))) {
|
|
11492
11492
|
basePaths.push(includeBasePath);
|
|
11493
11493
|
}
|
|
11494
11494
|
}
|
|
@@ -18985,7 +18985,7 @@ var Parser;
|
|
|
18985
18985
|
if (lastError) {
|
|
18986
18986
|
addRelatedInfo(
|
|
18987
18987
|
lastError,
|
|
18988
|
-
createDetachedDiagnostic(fileName, openPosition, 1, Diagnostics.
|
|
18988
|
+
createDetachedDiagnostic(fileName, openPosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, tokenToString(openKind), tokenToString(closeKind))
|
|
18989
18989
|
);
|
|
18990
18990
|
}
|
|
18991
18991
|
}
|
|
@@ -20573,7 +20573,7 @@ var Parser;
|
|
|
20573
20573
|
if (lastError && lastError.code === Diagnostics._0_expected.code) {
|
|
20574
20574
|
addRelatedInfo(
|
|
20575
20575
|
lastError,
|
|
20576
|
-
createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.
|
|
20576
|
+
createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")
|
|
20577
20577
|
);
|
|
20578
20578
|
}
|
|
20579
20579
|
}
|
|
@@ -23677,7 +23677,7 @@ var Parser;
|
|
|
23677
23677
|
if (lastError && lastError.code === Diagnostics._0_expected.code) {
|
|
23678
23678
|
addRelatedInfo(
|
|
23679
23679
|
lastError,
|
|
23680
|
-
createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.
|
|
23680
|
+
createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")
|
|
23681
23681
|
);
|
|
23682
23682
|
}
|
|
23683
23683
|
}
|
|
@@ -24656,7 +24656,7 @@ var Parser;
|
|
|
24656
24656
|
if (childTypeTag) {
|
|
24657
24657
|
const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);
|
|
24658
24658
|
if (lastError) {
|
|
24659
|
-
addRelatedInfo(lastError, createDetachedDiagnostic(fileName, 0, 0, Diagnostics.
|
|
24659
|
+
addRelatedInfo(lastError, createDetachedDiagnostic(fileName, 0, 0, Diagnostics.The_tag_was_first_specified_here));
|
|
24660
24660
|
}
|
|
24661
24661
|
break;
|
|
24662
24662
|
} else {
|
|
@@ -26006,6 +26006,7 @@ var commandOptionsWithoutBuild = [
|
|
|
26006
26006
|
{
|
|
26007
26007
|
name: "checkJs",
|
|
26008
26008
|
type: "boolean",
|
|
26009
|
+
affectsModuleResolution: true,
|
|
26009
26010
|
showInSimplifiedHelpView: true,
|
|
26010
26011
|
category: Diagnostics.JavaScript_Support,
|
|
26011
26012
|
description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,
|
|
@@ -27225,17 +27226,17 @@ function invalidDotDotAfterRecursiveWildcard(s) {
|
|
|
27225
27226
|
const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../");
|
|
27226
27227
|
return lastDotIndex > wildcardIndex;
|
|
27227
27228
|
}
|
|
27228
|
-
function matchesExclude(pathToCheck, excludeSpecs,
|
|
27229
|
+
function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) {
|
|
27229
27230
|
return matchesExcludeWorker(
|
|
27230
27231
|
pathToCheck,
|
|
27231
27232
|
filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)),
|
|
27232
|
-
|
|
27233
|
+
useCaseSensitiveFileNames2,
|
|
27233
27234
|
currentDirectory
|
|
27234
27235
|
);
|
|
27235
27236
|
}
|
|
27236
|
-
function matchesExcludeWorker(pathToCheck, excludeSpecs,
|
|
27237
|
+
function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) {
|
|
27237
27238
|
const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude");
|
|
27238
|
-
const excludeRegex = excludePattern && getRegexFromPattern(excludePattern,
|
|
27239
|
+
const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2);
|
|
27239
27240
|
if (!excludeRegex)
|
|
27240
27241
|
return false;
|
|
27241
27242
|
if (excludeRegex.test(pathToCheck))
|
|
@@ -27442,8 +27443,8 @@ function getPackageJsonTypesVersionsPaths(typesVersions) {
|
|
|
27442
27443
|
}
|
|
27443
27444
|
var nodeModulesAtTypes = combinePaths("node_modules", "@types");
|
|
27444
27445
|
function arePathsEqual(path1, path2, host) {
|
|
27445
|
-
const
|
|
27446
|
-
return comparePaths(path1, path2, !
|
|
27446
|
+
const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames;
|
|
27447
|
+
return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */;
|
|
27447
27448
|
}
|
|
27448
27449
|
function getOriginalAndResolvedFileName(fileName, host, traceEnabled) {
|
|
27449
27450
|
const resolvedFileName = realPath(fileName, host, traceEnabled);
|
|
@@ -28251,6 +28252,9 @@ function loadModuleFromSelfNameReference(extensions, moduleName, directory, stat
|
|
|
28251
28252
|
}
|
|
28252
28253
|
const trailingParts = parts.slice(nameParts.length);
|
|
28253
28254
|
const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`;
|
|
28255
|
+
if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) {
|
|
28256
|
+
return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference);
|
|
28257
|
+
}
|
|
28254
28258
|
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
|
28255
28259
|
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
|
28256
28260
|
return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference);
|
|
@@ -28598,13 +28602,10 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
|
|
|
28598
28602
|
function combineDirectoryPath(root, dir) {
|
|
28599
28603
|
return ensureTrailingDirectorySeparator(combinePaths(root, dir));
|
|
28600
28604
|
}
|
|
28601
|
-
function useCaseSensitiveFileNames() {
|
|
28602
|
-
return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames();
|
|
28603
|
-
}
|
|
28604
28605
|
function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
|
|
28605
28606
|
var _a, _b, _c, _d;
|
|
28606
|
-
if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
|
|
28607
|
-
const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
|
|
28607
|
+
if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
|
|
28608
|
+
const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
|
|
28608
28609
|
const commonSourceDirGuesses = [];
|
|
28609
28610
|
if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
|
|
28610
28611
|
const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName));
|
|
@@ -28633,7 +28634,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
|
|
|
28633
28634
|
for (const commonSourceDirGuess of commonSourceDirGuesses) {
|
|
28634
28635
|
const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess);
|
|
28635
28636
|
for (const candidateDir of candidateDirectories) {
|
|
28636
|
-
if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) {
|
|
28637
|
+
if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) {
|
|
28637
28638
|
const pathFragment = finalPath.slice(candidateDir.length + 1);
|
|
28638
28639
|
const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment);
|
|
28639
28640
|
const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */];
|
|
@@ -28643,7 +28644,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
|
|
|
28643
28644
|
for (const possibleExt of inputExts) {
|
|
28644
28645
|
if (!extensionIsOk(extensions, possibleExt))
|
|
28645
28646
|
continue;
|
|
28646
|
-
const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
|
|
28647
|
+
const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state));
|
|
28647
28648
|
if (state.host.fileExists(possibleInputWithInputExtension)) {
|
|
28648
28649
|
return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField(
|
|
28649
28650
|
extensions,
|
|
@@ -29000,6 +29001,9 @@ function traceIfEnabled(state, diagnostic, ...args) {
|
|
|
29000
29001
|
trace(state.host, diagnostic, ...args);
|
|
29001
29002
|
}
|
|
29002
29003
|
}
|
|
29004
|
+
function useCaseSensitiveFileNames(state) {
|
|
29005
|
+
return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames();
|
|
29006
|
+
}
|
|
29003
29007
|
|
|
29004
29008
|
// src/compiler/checker.ts
|
|
29005
29009
|
var nextNodeId = 1;
|
|
@@ -30746,8 +30750,8 @@ var plainJSErrors = /* @__PURE__ */ new Set([
|
|
|
30746
30750
|
// binder errors
|
|
30747
30751
|
Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
|
|
30748
30752
|
Diagnostics.A_module_cannot_have_multiple_default_exports.code,
|
|
30749
|
-
Diagnostics.
|
|
30750
|
-
Diagnostics.
|
|
30753
|
+
Diagnostics.Another_export_default_is_here.code,
|
|
30754
|
+
Diagnostics.The_first_export_default_is_here.code,
|
|
30751
30755
|
Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,
|
|
30752
30756
|
Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,
|
|
30753
30757
|
Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,
|