@typescript-deploys/pr-build 5.9.0-pr-61913-11 → 5.9.0-pr-62111-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 +178 -67
- package/lib/cs/diagnosticMessages.generated.json +3 -2
- package/lib/de/diagnosticMessages.generated.json +3 -2
- package/lib/es/diagnosticMessages.generated.json +3 -2
- package/lib/fr/diagnosticMessages.generated.json +3 -2
- package/lib/it/diagnosticMessages.generated.json +3 -2
- package/lib/ja/diagnosticMessages.generated.json +3 -2
- package/lib/ko/diagnosticMessages.generated.json +3 -2
- package/lib/lib.dom.d.ts +13272 -4254
- package/lib/lib.dom.iterable.d.ts +3 -474
- package/lib/lib.es2022.intl.d.ts +25 -1
- package/lib/lib.es5.d.ts +6 -2
- package/lib/lib.webworker.d.ts +3714 -1027
- package/lib/lib.webworker.iterable.d.ts +68 -15
- package/lib/pl/diagnosticMessages.generated.json +3 -2
- package/lib/pt-br/diagnosticMessages.generated.json +3 -2
- package/lib/ru/diagnosticMessages.generated.json +3 -2
- package/lib/tr/diagnosticMessages.generated.json +3 -2
- package/lib/typescript.d.ts +3 -3
- package/lib/typescript.js +290 -141
- package/lib/zh-cn/diagnosticMessages.generated.json +3 -2
- package/lib/zh-tw/diagnosticMessages.generated.json +3 -2
- 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 = "5.9";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20250723`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6344,6 +6344,7 @@ var Diagnostics = {
|
|
|
6344
6344
|
This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: diag(2343, 1 /* Error */, "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343", "This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),
|
|
6345
6345
|
Type_0_does_not_satisfy_the_constraint_1: diag(2344, 1 /* Error */, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."),
|
|
6346
6346
|
Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."),
|
|
6347
|
+
Call_target_does_not_contain_any_signatures: diag(2346, 1 /* Error */, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."),
|
|
6347
6348
|
Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1 /* Error */, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."),
|
|
6348
6349
|
Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1 /* Error */, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"),
|
|
6349
6350
|
This_expression_is_not_callable: diag(2349, 1 /* Error */, "This_expression_is_not_callable_2349", "This expression is not callable."),
|
|
@@ -6685,7 +6686,7 @@ var Diagnostics = {
|
|
|
6685
6686
|
Cannot_invoke_an_object_which_is_possibly_undefined: diag(2722, 1 /* Error */, "Cannot_invoke_an_object_which_is_possibly_undefined_2722", "Cannot invoke an object which is possibly 'undefined'."),
|
|
6686
6687
|
Cannot_invoke_an_object_which_is_possibly_null_or_undefined: diag(2723, 1 /* Error */, "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723", "Cannot invoke an object which is possibly 'null' or 'undefined'."),
|
|
6687
6688
|
_0_has_no_exported_member_named_1_Did_you_mean_2: diag(2724, 1 /* Error */, "_0_has_no_exported_member_named_1_Did_you_mean_2_2724", "'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),
|
|
6688
|
-
|
|
6689
|
+
Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0: diag(2725, 1 /* Error */, "Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725", "Class name cannot be 'Object' when targeting ES5 and above with module {0}."),
|
|
6689
6690
|
Cannot_find_lib_definition_for_0: diag(2726, 1 /* Error */, "Cannot_find_lib_definition_for_0_2726", "Cannot find lib definition for '{0}'."),
|
|
6690
6691
|
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}'?"),
|
|
6691
6692
|
_0_is_declared_here: diag(2728, 3 /* Message */, "_0_is_declared_here_2728", "'{0}' is declared here."),
|
|
@@ -7405,7 +7406,7 @@ var Diagnostics = {
|
|
|
7405
7406
|
File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option: diag(6504, 1 /* Error */, "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504", "File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),
|
|
7406
7407
|
Print_names_of_files_and_the_reason_they_are_part_of_the_compilation: diag(6505, 3 /* Message */, "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505", "Print names of files and the reason they are part of the compilation."),
|
|
7407
7408
|
Consider_adding_a_declare_modifier_to_this_class: diag(6506, 3 /* Message */, "Consider_adding_a_declare_modifier_to_this_class_6506", "Consider adding a 'declare' modifier to this class."),
|
|
7408
|
-
|
|
7409
|
+
Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files: diag(6600, 3 /* Message */, "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600", "Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),
|
|
7409
7410
|
Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export: diag(6601, 3 /* Message */, "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601", "Allow 'import x from y' when a module doesn't have a default export."),
|
|
7410
7411
|
Allow_accessing_UMD_globals_from_modules: diag(6602, 3 /* Message */, "Allow_accessing_UMD_globals_from_modules_6602", "Allow accessing UMD globals from modules."),
|
|
7411
7412
|
Disable_error_reporting_for_unreachable_code: diag(6603, 3 /* Message */, "Disable_error_reporting_for_unreachable_code_6603", "Disable error reporting for unreachable code."),
|
|
@@ -16080,7 +16081,7 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
|
|
|
16080
16081
|
function getBinaryOperatorPrecedence(kind) {
|
|
16081
16082
|
switch (kind) {
|
|
16082
16083
|
case 61 /* QuestionQuestionToken */:
|
|
16083
|
-
return
|
|
16084
|
+
return 5 /* Coalesce */;
|
|
16084
16085
|
case 57 /* BarBarToken */:
|
|
16085
16086
|
return 5 /* LogicalOR */;
|
|
16086
16087
|
case 56 /* AmpersandAmpersandToken */:
|
|
@@ -17198,8 +17199,14 @@ function base64encode(host, input) {
|
|
|
17198
17199
|
function readJsonOrUndefined(path, hostOrText) {
|
|
17199
17200
|
const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path);
|
|
17200
17201
|
if (!jsonText) return void 0;
|
|
17201
|
-
|
|
17202
|
-
|
|
17202
|
+
let result = tryParseJson(jsonText);
|
|
17203
|
+
if (result === void 0) {
|
|
17204
|
+
const looseResult = parseConfigFileTextToJson(path, jsonText);
|
|
17205
|
+
if (!looseResult.error) {
|
|
17206
|
+
result = looseResult.config;
|
|
17207
|
+
}
|
|
17208
|
+
}
|
|
17209
|
+
return result;
|
|
17203
17210
|
}
|
|
17204
17211
|
function readJson(path, host) {
|
|
17205
17212
|
return readJsonOrUndefined(path, host) || {};
|
|
@@ -18327,7 +18334,7 @@ function isNodeModulesOrScopedPackageDirectory(s, getCanonicalFileName) {
|
|
|
18327
18334
|
var reservedCharacterPattern = /[^\w\s/]/g;
|
|
18328
18335
|
var wildcardCharCodes = [42 /* asterisk */, 63 /* question */];
|
|
18329
18336
|
var commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
|
|
18330
|
-
var implicitExcludePathRegexPattern = `(?!(
|
|
18337
|
+
var implicitExcludePathRegexPattern = `(?!(?:${commonPackageFolders.join("|")})(?:/|$))`;
|
|
18331
18338
|
var filesMatcher = {
|
|
18332
18339
|
/**
|
|
18333
18340
|
* Matches any single directory segment unless it is the last segment and a .min.js file
|
|
@@ -18335,12 +18342,12 @@ var filesMatcher = {
|
|
|
18335
18342
|
* [^./] # matches everything up to the first . character (excluding directory separators)
|
|
18336
18343
|
* (\\.(?!min\\.js$))? # matches . characters but not if they are part of the .min.js file extension
|
|
18337
18344
|
*/
|
|
18338
|
-
singleAsteriskRegexFragment: "([^./]|(
|
|
18345
|
+
singleAsteriskRegexFragment: "(?:[^./]|(?:\\.(?!min\\.js$))?)*",
|
|
18339
18346
|
/**
|
|
18340
18347
|
* Regex for the ** wildcard. Matches any number of subdirectories. When used for including
|
|
18341
18348
|
* files or directories, does not match subdirectories that start with a . character
|
|
18342
18349
|
*/
|
|
18343
|
-
doubleAsteriskRegexFragment: `(
|
|
18350
|
+
doubleAsteriskRegexFragment: `(?:/${implicitExcludePathRegexPattern}[^/.][^/]*)*?`,
|
|
18344
18351
|
replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment)
|
|
18345
18352
|
};
|
|
18346
18353
|
var directoriesMatcher = {
|
|
@@ -18349,12 +18356,12 @@ var directoriesMatcher = {
|
|
|
18349
18356
|
* Regex for the ** wildcard. Matches any number of subdirectories. When used for including
|
|
18350
18357
|
* files or directories, does not match subdirectories that start with a . character
|
|
18351
18358
|
*/
|
|
18352
|
-
doubleAsteriskRegexFragment: `(
|
|
18359
|
+
doubleAsteriskRegexFragment: `(?:/${implicitExcludePathRegexPattern}[^/.][^/]*)*?`,
|
|
18353
18360
|
replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment)
|
|
18354
18361
|
};
|
|
18355
18362
|
var excludeMatcher = {
|
|
18356
18363
|
singleAsteriskRegexFragment: "[^/]*",
|
|
18357
|
-
doubleAsteriskRegexFragment: "(
|
|
18364
|
+
doubleAsteriskRegexFragment: "(?:/.+?)?",
|
|
18358
18365
|
replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment)
|
|
18359
18366
|
};
|
|
18360
18367
|
var wildcardMatchers = {
|
|
@@ -18367,9 +18374,9 @@ function getRegularExpressionForWildcard(specs, basePath, usage) {
|
|
|
18367
18374
|
if (!patterns || !patterns.length) {
|
|
18368
18375
|
return void 0;
|
|
18369
18376
|
}
|
|
18370
|
-
const pattern = patterns.map((pattern2) => `(
|
|
18371
|
-
const terminator = usage === "exclude" ? "(
|
|
18372
|
-
return `^(
|
|
18377
|
+
const pattern = patterns.map((pattern2) => `(?:${pattern2})`).join("|");
|
|
18378
|
+
const terminator = usage === "exclude" ? "(?:$|/)" : "$";
|
|
18379
|
+
return `^(?:${pattern})${terminator}`;
|
|
18373
18380
|
}
|
|
18374
18381
|
function getRegularExpressionsForWildcards(specs, basePath, usage) {
|
|
18375
18382
|
if (specs === void 0 || specs.length === 0) {
|
|
@@ -18382,7 +18389,7 @@ function isImplicitGlob(lastPathComponent) {
|
|
|
18382
18389
|
}
|
|
18383
18390
|
function getPatternFromSpec(spec, basePath, usage) {
|
|
18384
18391
|
const pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
|
|
18385
|
-
return pattern && `^(
|
|
18392
|
+
return pattern && `^(?:${pattern})${usage === "exclude" ? "(?:$|/)" : "$"}`;
|
|
18386
18393
|
}
|
|
18387
18394
|
function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragment, doubleAsteriskRegexFragment, replaceWildcardCharacter: replaceWildcardCharacter2 } = wildcardMatchers[usage]) {
|
|
18388
18395
|
let subpattern = "";
|
|
@@ -18402,7 +18409,7 @@ function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragm
|
|
|
18402
18409
|
subpattern += doubleAsteriskRegexFragment;
|
|
18403
18410
|
} else {
|
|
18404
18411
|
if (usage === "directories") {
|
|
18405
|
-
subpattern += "(";
|
|
18412
|
+
subpattern += "(?:";
|
|
18406
18413
|
optionalCount++;
|
|
18407
18414
|
}
|
|
18408
18415
|
if (hasWrittenComponent) {
|
|
@@ -18411,7 +18418,7 @@ function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragm
|
|
|
18411
18418
|
if (usage !== "exclude") {
|
|
18412
18419
|
let componentPattern = "";
|
|
18413
18420
|
if (component.charCodeAt(0) === 42 /* asterisk */) {
|
|
18414
|
-
componentPattern += "([^./]" + singleAsteriskRegexFragment + ")?";
|
|
18421
|
+
componentPattern += "(?:[^./]" + singleAsteriskRegexFragment + ")?";
|
|
18415
18422
|
component = component.substr(1);
|
|
18416
18423
|
} else if (component.charCodeAt(0) === 63 /* question */) {
|
|
18417
18424
|
componentPattern += "[^./]";
|
|
@@ -31211,6 +31218,7 @@ var Parser;
|
|
|
31211
31218
|
/*skipKeyword*/
|
|
31212
31219
|
true
|
|
31213
31220
|
);
|
|
31221
|
+
parseOptional(28 /* CommaToken */);
|
|
31214
31222
|
if (!parseExpected(20 /* CloseBraceToken */)) {
|
|
31215
31223
|
const lastError = lastOrUndefined(parseDiagnostics);
|
|
31216
31224
|
if (lastError && lastError.code === Diagnostics._0_expected.code) {
|
|
@@ -31968,10 +31976,13 @@ var Parser;
|
|
|
31968
31976
|
if (token() !== 27 /* SemicolonToken */ && token() !== 100 /* FunctionKeyword */ && token() !== 86 /* ClassKeyword */ && isStartOfStatement() && !isStartOfExpressionStatement()) {
|
|
31969
31977
|
return parseFunctionBlock(16 /* IgnoreMissingOpenBrace */ | (isAsync ? 2 /* Await */ : 0 /* None */));
|
|
31970
31978
|
}
|
|
31979
|
+
const savedYieldContext = inYieldContext();
|
|
31980
|
+
setYieldContext(false);
|
|
31971
31981
|
const savedTopLevel = topLevel;
|
|
31972
31982
|
topLevel = false;
|
|
31973
31983
|
const node = isAsync ? doInAwaitContext(() => parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction)) : doOutsideOfAwaitContext(() => parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction));
|
|
31974
31984
|
topLevel = savedTopLevel;
|
|
31985
|
+
setYieldContext(savedYieldContext);
|
|
31975
31986
|
return node;
|
|
31976
31987
|
}
|
|
31977
31988
|
function parseConditionalExpressionRest(leftOperand, pos, allowReturnTypeInArrowFunction) {
|
|
@@ -36837,7 +36848,7 @@ var commandOptionsWithoutBuild = [
|
|
|
36837
36848
|
affectsBuildInfo: true,
|
|
36838
36849
|
showInSimplifiedHelpView: true,
|
|
36839
36850
|
category: Diagnostics.JavaScript_Support,
|
|
36840
|
-
description: Diagnostics.
|
|
36851
|
+
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,
|
|
36841
36852
|
defaultValueDescription: false
|
|
36842
36853
|
},
|
|
36843
36854
|
{
|
|
@@ -47216,6 +47227,7 @@ function createTypeChecker(host) {
|
|
|
47216
47227
|
}
|
|
47217
47228
|
};
|
|
47218
47229
|
var anyIterationTypes = createIterationTypes(anyType, anyType, anyType);
|
|
47230
|
+
var silentNeverIterationTypes = createIterationTypes(silentNeverType, silentNeverType, silentNeverType);
|
|
47219
47231
|
var asyncIterationTypesResolver = {
|
|
47220
47232
|
iterableCacheKey: "iterationTypesOfAsyncIterable",
|
|
47221
47233
|
iteratorCacheKey: "iterationTypesOfAsyncIterator",
|
|
@@ -50429,7 +50441,14 @@ function createTypeChecker(host) {
|
|
|
50429
50441
|
if (symbol.flags & 2097152 /* Alias */ && isInJSFile(declaration) && ((_a = declaration.parent) == null ? void 0 : _a.parent) && isVariableDeclaration(declaration.parent.parent) && ((_b = declaration.parent.parent.parent) == null ? void 0 : _b.parent) && isVariableStatement(declaration.parent.parent.parent.parent) && !hasSyntacticModifier(declaration.parent.parent.parent.parent, 32 /* Export */) && declaration.parent.parent.parent.parent.parent && isDeclarationVisible(declaration.parent.parent.parent.parent.parent)) {
|
|
50430
50442
|
return addVisibleAlias(declaration, declaration.parent.parent.parent.parent);
|
|
50431
50443
|
} else if (symbol.flags & 2 /* BlockScopedVariable */) {
|
|
50432
|
-
const
|
|
50444
|
+
const rootDeclaration = walkUpBindingElementsAndPatterns(declaration);
|
|
50445
|
+
if (rootDeclaration.kind === 170 /* Parameter */) {
|
|
50446
|
+
return false;
|
|
50447
|
+
}
|
|
50448
|
+
const variableStatement = rootDeclaration.parent.parent;
|
|
50449
|
+
if (variableStatement.kind !== 244 /* VariableStatement */) {
|
|
50450
|
+
return false;
|
|
50451
|
+
}
|
|
50433
50452
|
if (hasSyntacticModifier(variableStatement, 32 /* Export */)) {
|
|
50434
50453
|
return true;
|
|
50435
50454
|
}
|
|
@@ -50574,7 +50593,7 @@ function createTypeChecker(host) {
|
|
|
50574
50593
|
}
|
|
50575
50594
|
}
|
|
50576
50595
|
function typeToString(type, enclosingDeclaration, flags = 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */, writer = createTextWriter(""), maximumLength, verbosityLevel, out) {
|
|
50577
|
-
const noTruncation = compilerOptions.noErrorTruncation || flags & 1 /* NoTruncation */;
|
|
50596
|
+
const noTruncation = !maximumLength && compilerOptions.noErrorTruncation || flags & 1 /* NoTruncation */;
|
|
50578
50597
|
const typeNode = nodeBuilder.typeToTypeNode(
|
|
50579
50598
|
type,
|
|
50580
50599
|
enclosingDeclaration,
|
|
@@ -52123,27 +52142,77 @@ function createTypeChecker(host) {
|
|
|
52123
52142
|
context.approximateLength += symbolName(propertySymbol).length + 1;
|
|
52124
52143
|
if (propertySymbol.flags & 98304 /* Accessor */) {
|
|
52125
52144
|
const writeType = getWriteTypeOfSymbol(propertySymbol);
|
|
52126
|
-
if (
|
|
52145
|
+
if (!isErrorType(propertyType) && !isErrorType(writeType)) {
|
|
52127
52146
|
const symbolMapper = getSymbolLinks(propertySymbol).mapper;
|
|
52128
|
-
const
|
|
52129
|
-
|
|
52130
|
-
|
|
52131
|
-
|
|
52132
|
-
|
|
52133
|
-
|
|
52134
|
-
|
|
52135
|
-
|
|
52136
|
-
|
|
52137
|
-
|
|
52138
|
-
|
|
52139
|
-
|
|
52140
|
-
|
|
52141
|
-
|
|
52142
|
-
|
|
52143
|
-
setterDeclaration
|
|
52144
|
-
|
|
52145
|
-
|
|
52146
|
-
|
|
52147
|
+
const propDeclaration = getDeclarationOfKind(propertySymbol, 173 /* PropertyDeclaration */);
|
|
52148
|
+
if (propertyType !== writeType || propertySymbol.parent.flags & 32 /* Class */ && !propDeclaration) {
|
|
52149
|
+
const getterDeclaration = getDeclarationOfKind(propertySymbol, 178 /* GetAccessor */);
|
|
52150
|
+
if (getterDeclaration) {
|
|
52151
|
+
const getterSignature = getSignatureFromDeclaration(getterDeclaration);
|
|
52152
|
+
typeElements.push(
|
|
52153
|
+
setCommentRange2(
|
|
52154
|
+
context,
|
|
52155
|
+
signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(getterSignature, symbolMapper) : getterSignature, 178 /* GetAccessor */, context, { name: propertyName }),
|
|
52156
|
+
getterDeclaration
|
|
52157
|
+
)
|
|
52158
|
+
);
|
|
52159
|
+
}
|
|
52160
|
+
const setterDeclaration = getDeclarationOfKind(propertySymbol, 179 /* SetAccessor */);
|
|
52161
|
+
if (setterDeclaration) {
|
|
52162
|
+
const setterSignature = getSignatureFromDeclaration(setterDeclaration);
|
|
52163
|
+
typeElements.push(
|
|
52164
|
+
setCommentRange2(
|
|
52165
|
+
context,
|
|
52166
|
+
signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(setterSignature, symbolMapper) : setterSignature, 179 /* SetAccessor */, context, { name: propertyName }),
|
|
52167
|
+
setterDeclaration
|
|
52168
|
+
)
|
|
52169
|
+
);
|
|
52170
|
+
}
|
|
52171
|
+
return;
|
|
52172
|
+
}
|
|
52173
|
+
if (propertySymbol.parent.flags & 32 /* Class */ && propDeclaration && find(propDeclaration.modifiers, isAccessorModifier)) {
|
|
52174
|
+
const fakeGetterSignature = createSignature(
|
|
52175
|
+
/*declaration*/
|
|
52176
|
+
void 0,
|
|
52177
|
+
/*typeParameters*/
|
|
52178
|
+
void 0,
|
|
52179
|
+
/*thisParameter*/
|
|
52180
|
+
void 0,
|
|
52181
|
+
emptyArray,
|
|
52182
|
+
propertyType,
|
|
52183
|
+
/*resolvedTypePredicate*/
|
|
52184
|
+
void 0,
|
|
52185
|
+
0,
|
|
52186
|
+
0 /* None */
|
|
52187
|
+
);
|
|
52188
|
+
typeElements.push(
|
|
52189
|
+
setCommentRange2(
|
|
52190
|
+
context,
|
|
52191
|
+
signatureToSignatureDeclarationHelper(fakeGetterSignature, 178 /* GetAccessor */, context, { name: propertyName }),
|
|
52192
|
+
propDeclaration
|
|
52193
|
+
)
|
|
52194
|
+
);
|
|
52195
|
+
const setterParam = createSymbol(1 /* FunctionScopedVariable */, "arg");
|
|
52196
|
+
setterParam.links.type = writeType;
|
|
52197
|
+
const fakeSetterSignature = createSignature(
|
|
52198
|
+
/*declaration*/
|
|
52199
|
+
void 0,
|
|
52200
|
+
/*typeParameters*/
|
|
52201
|
+
void 0,
|
|
52202
|
+
/*thisParameter*/
|
|
52203
|
+
void 0,
|
|
52204
|
+
[setterParam],
|
|
52205
|
+
voidType,
|
|
52206
|
+
/*resolvedTypePredicate*/
|
|
52207
|
+
void 0,
|
|
52208
|
+
0,
|
|
52209
|
+
0 /* None */
|
|
52210
|
+
);
|
|
52211
|
+
typeElements.push(
|
|
52212
|
+
signatureToSignatureDeclarationHelper(fakeSetterSignature, 179 /* SetAccessor */, context, { name: propertyName })
|
|
52213
|
+
);
|
|
52214
|
+
return;
|
|
52215
|
+
}
|
|
52147
52216
|
}
|
|
52148
52217
|
}
|
|
52149
52218
|
const optionalToken = propertySymbol.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0;
|
|
@@ -56734,11 +56803,14 @@ function createTypeChecker(host) {
|
|
|
56734
56803
|
}
|
|
56735
56804
|
function getWriteTypeOfSymbol(symbol) {
|
|
56736
56805
|
const checkFlags = getCheckFlags(symbol);
|
|
56737
|
-
if (
|
|
56738
|
-
return checkFlags &
|
|
56806
|
+
if (checkFlags & 2 /* SyntheticProperty */) {
|
|
56807
|
+
return checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
56739
56808
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
56740
56809
|
symbol.links.writeType || symbol.links.type
|
|
56741
|
-
)
|
|
56810
|
+
);
|
|
56811
|
+
}
|
|
56812
|
+
if (symbol.flags & 4 /* Property */) {
|
|
56813
|
+
return removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
56742
56814
|
}
|
|
56743
56815
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
56744
56816
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -58894,6 +58966,7 @@ function createTypeChecker(host) {
|
|
|
58894
58966
|
}
|
|
58895
58967
|
function createUnionOrIntersectionProperty(containingType, name, skipObjectFunctionPropertyAugment) {
|
|
58896
58968
|
var _a, _b, _c;
|
|
58969
|
+
let propFlags = 0 /* None */;
|
|
58897
58970
|
let singleProp;
|
|
58898
58971
|
let propSet;
|
|
58899
58972
|
let indexTypes;
|
|
@@ -58918,6 +58991,7 @@ function createTypeChecker(host) {
|
|
|
58918
58991
|
}
|
|
58919
58992
|
if (!singleProp) {
|
|
58920
58993
|
singleProp = prop;
|
|
58994
|
+
propFlags = prop.flags & 98304 /* Accessor */ || 4 /* Property */;
|
|
58921
58995
|
} else if (prop !== singleProp) {
|
|
58922
58996
|
const isInstantiation = (getTargetSymbol(prop) || prop) === (getTargetSymbol(singleProp) || singleProp);
|
|
58923
58997
|
if (isInstantiation && compareProperties(singleProp, prop, (a, b) => a === b ? -1 /* True */ : 0 /* False */) === -1 /* True */) {
|
|
@@ -58932,6 +59006,9 @@ function createTypeChecker(host) {
|
|
|
58932
59006
|
propSet.set(id, prop);
|
|
58933
59007
|
}
|
|
58934
59008
|
}
|
|
59009
|
+
if (propFlags & 98304 /* Accessor */ && (prop.flags & 98304 /* Accessor */) !== (propFlags & 98304 /* Accessor */)) {
|
|
59010
|
+
propFlags = propFlags & ~98304 /* Accessor */ | 4 /* Property */;
|
|
59011
|
+
}
|
|
58935
59012
|
}
|
|
58936
59013
|
if (isUnion && isReadonlySymbol(prop)) {
|
|
58937
59014
|
checkFlags |= 8 /* Readonly */;
|
|
@@ -58945,6 +59022,7 @@ function createTypeChecker(host) {
|
|
|
58945
59022
|
} else if (isUnion) {
|
|
58946
59023
|
const indexInfo = !isLateBoundName(name) && getApplicableIndexInfoForName(type, name);
|
|
58947
59024
|
if (indexInfo) {
|
|
59025
|
+
propFlags = propFlags & ~98304 /* Accessor */ | 4 /* Property */;
|
|
58948
59026
|
checkFlags |= 32 /* WritePartial */ | (indexInfo.isReadonly ? 8 /* Readonly */ : 0);
|
|
58949
59027
|
indexTypes = append(indexTypes, isTupleType(type) ? getRestTypeOfTupleType(type) || undefinedType : indexInfo.type);
|
|
58950
59028
|
} else if (isObjectLiteralType(type) && !(getObjectFlags(type) & 2097152 /* ContainsSpread */)) {
|
|
@@ -59008,7 +59086,7 @@ function createTypeChecker(host) {
|
|
|
59008
59086
|
propTypes.push(type);
|
|
59009
59087
|
}
|
|
59010
59088
|
addRange(propTypes, indexTypes);
|
|
59011
|
-
const result = createSymbol(
|
|
59089
|
+
const result = createSymbol(propFlags | (optionalFlag ?? 0), name, syntheticFlag | checkFlags);
|
|
59012
59090
|
result.links.containingType = containingType;
|
|
59013
59091
|
if (!hasNonUniformValueDeclaration && firstValueDeclaration) {
|
|
59014
59092
|
result.valueDeclaration = firstValueDeclaration;
|
|
@@ -67432,9 +67510,13 @@ function createTypeChecker(host) {
|
|
|
67432
67510
|
return types[0];
|
|
67433
67511
|
}
|
|
67434
67512
|
const primaryTypes = strictNullChecks ? sameMap(types, (t) => filterType(t, (u) => !(u.flags & 98304 /* Nullable */))) : types;
|
|
67435
|
-
const superTypeOrUnion = literalTypesWithSameBaseType(primaryTypes) ? getUnionType(primaryTypes) :
|
|
67513
|
+
const superTypeOrUnion = literalTypesWithSameBaseType(primaryTypes) ? getUnionType(primaryTypes) : getSingleCommonSupertype(primaryTypes);
|
|
67436
67514
|
return primaryTypes === types ? superTypeOrUnion : getNullableType(superTypeOrUnion, getCombinedTypeFlags(types) & 98304 /* Nullable */);
|
|
67437
67515
|
}
|
|
67516
|
+
function getSingleCommonSupertype(types) {
|
|
67517
|
+
const candidate = reduceLeft(types, (s, t) => isTypeStrictSubtypeOf(s, t) ? t : s);
|
|
67518
|
+
return every(types, (t) => t === candidate || isTypeStrictSubtypeOf(t, candidate)) ? candidate : reduceLeft(types, (s, t) => isTypeSubtypeOf(s, t) ? t : s);
|
|
67519
|
+
}
|
|
67438
67520
|
function getCommonSubtype(types) {
|
|
67439
67521
|
return reduceLeft(types, (s, t) => isTypeSubtypeOf(t, s) ? t : s);
|
|
67440
67522
|
}
|
|
@@ -68413,7 +68495,7 @@ function createTypeChecker(host) {
|
|
|
68413
68495
|
function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
|
|
68414
68496
|
let bivariant = false;
|
|
68415
68497
|
let propagationType;
|
|
68416
|
-
let inferencePriority =
|
|
68498
|
+
let inferencePriority = 2048 /* MaxValue */;
|
|
68417
68499
|
let visited;
|
|
68418
68500
|
let sourceStack;
|
|
68419
68501
|
let targetStack;
|
|
@@ -68485,7 +68567,7 @@ function createTypeChecker(host) {
|
|
|
68485
68567
|
}
|
|
68486
68568
|
if (!inference.isFixed) {
|
|
68487
68569
|
const candidate = propagationType || source;
|
|
68488
|
-
if (candidate === blockedStringType
|
|
68570
|
+
if (candidate === blockedStringType) {
|
|
68489
68571
|
return;
|
|
68490
68572
|
}
|
|
68491
68573
|
if (inference.priority === void 0 || priority < inference.priority) {
|
|
@@ -68615,7 +68697,7 @@ function createTypeChecker(host) {
|
|
|
68615
68697
|
}
|
|
68616
68698
|
(visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */);
|
|
68617
68699
|
const saveInferencePriority = inferencePriority;
|
|
68618
|
-
inferencePriority =
|
|
68700
|
+
inferencePriority = 2048 /* MaxValue */;
|
|
68619
68701
|
const saveExpandingFlags = expandingFlags;
|
|
68620
68702
|
(sourceStack ?? (sourceStack = [])).push(source);
|
|
68621
68703
|
(targetStack ?? (targetStack = [])).push(target);
|
|
@@ -68706,7 +68788,7 @@ function createTypeChecker(host) {
|
|
|
68706
68788
|
} else {
|
|
68707
68789
|
for (let i = 0; i < sources.length; i++) {
|
|
68708
68790
|
const saveInferencePriority = inferencePriority;
|
|
68709
|
-
inferencePriority =
|
|
68791
|
+
inferencePriority = 2048 /* MaxValue */;
|
|
68710
68792
|
inferFromTypes(sources[i], t);
|
|
68711
68793
|
if (inferencePriority === priority) matched[i] = true;
|
|
68712
68794
|
inferenceCircularity = inferenceCircularity || inferencePriority === -1 /* Circularity */;
|
|
@@ -69034,14 +69116,14 @@ function createTypeChecker(host) {
|
|
|
69034
69116
|
return candidates;
|
|
69035
69117
|
}
|
|
69036
69118
|
function getContravariantInference(inference) {
|
|
69037
|
-
return inference.priority &
|
|
69119
|
+
return inference.priority & 416 /* PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates);
|
|
69038
69120
|
}
|
|
69039
69121
|
function getCovariantInference(inference, signature) {
|
|
69040
69122
|
const candidates = unionObjectAndArrayLiteralCandidates(inference.candidates);
|
|
69041
69123
|
const primitiveConstraint = hasPrimitiveConstraint(inference.typeParameter) || isConstTypeVariable(inference.typeParameter);
|
|
69042
69124
|
const widenLiteralTypes = !primitiveConstraint && inference.topLevel && (inference.isFixed || !isTypeParameterAtTopLevelInReturnType(signature, inference.typeParameter));
|
|
69043
69125
|
const baseCandidates = primitiveConstraint ? sameMap(candidates, getRegularTypeOfLiteralType) : widenLiteralTypes ? sameMap(candidates, getWidenedLiteralType) : candidates;
|
|
69044
|
-
const unwidenedType = inference.priority &
|
|
69126
|
+
const unwidenedType = inference.priority & 416 /* PriorityImpliesCombination */ ? getUnionType(baseCandidates, 2 /* Subtype */) : getCommonSupertype(baseCandidates);
|
|
69045
69127
|
return getWidenedType(unwidenedType);
|
|
69046
69128
|
}
|
|
69047
69129
|
function getInferredType(context, index) {
|
|
@@ -73317,6 +73399,9 @@ function createTypeChecker(host) {
|
|
|
73317
73399
|
}
|
|
73318
73400
|
function popContextualType() {
|
|
73319
73401
|
contextualTypeCount--;
|
|
73402
|
+
contextualTypeNodes[contextualTypeCount] = void 0;
|
|
73403
|
+
contextualTypes[contextualTypeCount] = void 0;
|
|
73404
|
+
contextualIsCache[contextualTypeCount] = void 0;
|
|
73320
73405
|
}
|
|
73321
73406
|
function findContextualNode(node, includeCaches) {
|
|
73322
73407
|
for (let i = contextualTypeCount - 1; i >= 0; i--) {
|
|
@@ -73333,6 +73418,8 @@ function createTypeChecker(host) {
|
|
|
73333
73418
|
}
|
|
73334
73419
|
function popInferenceContext() {
|
|
73335
73420
|
inferenceContextCount--;
|
|
73421
|
+
inferenceContextNodes[inferenceContextCount] = void 0;
|
|
73422
|
+
inferenceContexts[inferenceContextCount] = void 0;
|
|
73336
73423
|
}
|
|
73337
73424
|
function getInferenceContext(node) {
|
|
73338
73425
|
for (let i = inferenceContextCount - 1; i >= 0; i--) {
|
|
@@ -73343,11 +73430,13 @@ function createTypeChecker(host) {
|
|
|
73343
73430
|
}
|
|
73344
73431
|
function pushActiveMapper(mapper) {
|
|
73345
73432
|
activeTypeMappers[activeTypeMappersCount] = mapper;
|
|
73346
|
-
activeTypeMappersCaches[activeTypeMappersCount] = /* @__PURE__ */ new Map();
|
|
73433
|
+
activeTypeMappersCaches[activeTypeMappersCount] ?? (activeTypeMappersCaches[activeTypeMappersCount] = /* @__PURE__ */ new Map());
|
|
73347
73434
|
activeTypeMappersCount++;
|
|
73348
73435
|
}
|
|
73349
73436
|
function popActiveMapper() {
|
|
73350
73437
|
activeTypeMappersCount--;
|
|
73438
|
+
activeTypeMappers[activeTypeMappersCount] = void 0;
|
|
73439
|
+
activeTypeMappersCaches[activeTypeMappersCount].clear();
|
|
73351
73440
|
}
|
|
73352
73441
|
function findActiveMapper(mapper) {
|
|
73353
73442
|
for (let i = activeTypeMappersCount - 1; i >= 0; i--) {
|
|
@@ -75706,7 +75795,7 @@ function createTypeChecker(host) {
|
|
|
75706
75795
|
}
|
|
75707
75796
|
const returnContext = createInferenceContext(signature.typeParameters, signature, context.flags);
|
|
75708
75797
|
const returnSourceType = instantiateType(contextualType, outerContext && createOuterReturnMapper(outerContext));
|
|
75709
|
-
inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType
|
|
75798
|
+
inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType);
|
|
75710
75799
|
context.returnMapper = some(returnContext.inferences, hasInferenceCandidates) ? getMapperFromContext(cloneInferredPartOfContext(returnContext)) : void 0;
|
|
75711
75800
|
}
|
|
75712
75801
|
}
|
|
@@ -76349,7 +76438,12 @@ function createTypeChecker(host) {
|
|
|
76349
76438
|
candidates = candidatesOutArray || [];
|
|
76350
76439
|
reorderCandidates(signatures, candidates, callChainFlags);
|
|
76351
76440
|
if (!isJsxOpenFragment) {
|
|
76352
|
-
|
|
76441
|
+
if (!candidates.length) {
|
|
76442
|
+
if (reportErrors2) {
|
|
76443
|
+
diagnostics.add(getDiagnosticForCallNode(node, Diagnostics.Call_target_does_not_contain_any_signatures));
|
|
76444
|
+
}
|
|
76445
|
+
return resolveErrorCall(node);
|
|
76446
|
+
}
|
|
76353
76447
|
}
|
|
76354
76448
|
const args = getEffectiveCallArguments(node);
|
|
76355
76449
|
const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters;
|
|
@@ -78632,6 +78726,9 @@ function createTypeChecker(host) {
|
|
|
78632
78726
|
return { yieldTypes, nextTypes };
|
|
78633
78727
|
}
|
|
78634
78728
|
function getYieldedTypeOfYieldExpression(node, expressionType, sentType, isAsync) {
|
|
78729
|
+
if (expressionType === silentNeverType) {
|
|
78730
|
+
return silentNeverType;
|
|
78731
|
+
}
|
|
78635
78732
|
const errorNode = node.expression || node;
|
|
78636
78733
|
const yieldedType = node.asteriskToken ? checkIteratedTypeOrElementType(isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */, expressionType, sentType, errorNode) : expressionType;
|
|
78637
78734
|
return !isAsync ? yieldedType : getAwaitedType(
|
|
@@ -79665,17 +79762,27 @@ function createTypeChecker(host) {
|
|
|
79665
79762
|
}
|
|
79666
79763
|
}
|
|
79667
79764
|
function checkNullishCoalesceOperands(node) {
|
|
79668
|
-
|
|
79669
|
-
|
|
79670
|
-
|
|
79671
|
-
|
|
79765
|
+
if (node.operatorToken.kind !== 61 /* QuestionQuestionToken */) {
|
|
79766
|
+
return;
|
|
79767
|
+
}
|
|
79768
|
+
if (isBinaryExpression(node.parent)) {
|
|
79769
|
+
const { left, operatorToken } = node.parent;
|
|
79770
|
+
if (isBinaryExpression(left) && operatorToken.kind === 57 /* BarBarToken */) {
|
|
79771
|
+
grammarErrorOnNode(left, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(61 /* QuestionQuestionToken */), tokenToString(operatorToken.kind));
|
|
79772
|
+
}
|
|
79773
|
+
} else if (isBinaryExpression(node.left)) {
|
|
79774
|
+
const { operatorToken } = node.left;
|
|
79775
|
+
if (operatorToken.kind === 57 /* BarBarToken */ || operatorToken.kind === 56 /* AmpersandAmpersandToken */) {
|
|
79776
|
+
grammarErrorOnNode(node.left, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(operatorToken.kind), tokenToString(61 /* QuestionQuestionToken */));
|
|
79672
79777
|
}
|
|
79673
|
-
|
|
79674
|
-
|
|
79778
|
+
} else if (isBinaryExpression(node.right)) {
|
|
79779
|
+
const { operatorToken } = node.right;
|
|
79780
|
+
if (operatorToken.kind === 56 /* AmpersandAmpersandToken */) {
|
|
79781
|
+
grammarErrorOnNode(node.right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(61 /* QuestionQuestionToken */), tokenToString(operatorToken.kind));
|
|
79675
79782
|
}
|
|
79676
|
-
checkNullishCoalesceOperandLeft(node);
|
|
79677
|
-
checkNullishCoalesceOperandRight(node);
|
|
79678
79783
|
}
|
|
79784
|
+
checkNullishCoalesceOperandLeft(node);
|
|
79785
|
+
checkNullishCoalesceOperandRight(node);
|
|
79679
79786
|
}
|
|
79680
79787
|
function checkNullishCoalesceOperandLeft(node) {
|
|
79681
79788
|
const leftTarget = skipOuterExpressions(node.left, 63 /* All */);
|
|
@@ -83714,6 +83821,9 @@ function createTypeChecker(host) {
|
|
|
83714
83821
|
}
|
|
83715
83822
|
function getIterationTypesOfIterable(type, use, errorNode) {
|
|
83716
83823
|
var _a, _b;
|
|
83824
|
+
if (type === silentNeverType) {
|
|
83825
|
+
return silentNeverIterationTypes;
|
|
83826
|
+
}
|
|
83717
83827
|
if (isTypeAny(type)) {
|
|
83718
83828
|
return anyIterationTypes;
|
|
83719
83829
|
}
|
|
@@ -84439,7 +84549,7 @@ function createTypeChecker(host) {
|
|
|
84439
84549
|
}
|
|
84440
84550
|
function checkClassNameCollisionWithObject(name) {
|
|
84441
84551
|
if (languageVersion >= 1 /* ES5 */ && name.escapedText === "Object" && host.getEmitModuleFormatOfFile(getSourceFileOfNode(name)) < 5 /* ES2015 */) {
|
|
84442
|
-
error(name, Diagnostics.
|
|
84552
|
+
error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0, ModuleKind[moduleKind]);
|
|
84443
84553
|
}
|
|
84444
84554
|
}
|
|
84445
84555
|
function checkUnmatchedJSDocParameters(node) {
|
|
@@ -89848,7 +89958,7 @@ function createTypeChecker(host) {
|
|
|
89848
89958
|
if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) {
|
|
89849
89959
|
return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);
|
|
89850
89960
|
}
|
|
89851
|
-
if (languageVersion < 2 /* ES2015 */ && isAutoAccessorPropertyDeclaration(node)) {
|
|
89961
|
+
if (languageVersion < 2 /* ES2015 */ && isAutoAccessorPropertyDeclaration(node) && !(node.flags & 33554432 /* Ambient */)) {
|
|
89852
89962
|
return grammarErrorOnNode(node.name, Diagnostics.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);
|
|
89853
89963
|
}
|
|
89854
89964
|
if (isAutoAccessorPropertyDeclaration(node) && checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_accessor_property_cannot_be_declared_optional)) {
|
|
@@ -89933,7 +90043,7 @@ function createTypeChecker(host) {
|
|
|
89933
90043
|
function checkGrammarBigIntLiteral(node) {
|
|
89934
90044
|
const literalType = isLiteralTypeNode(node.parent) || isPrefixUnaryExpression(node.parent) && isLiteralTypeNode(node.parent.parent);
|
|
89935
90045
|
if (!literalType) {
|
|
89936
|
-
if (languageVersion < 7 /* ES2020 */) {
|
|
90046
|
+
if (!(node.flags & 33554432 /* Ambient */) && languageVersion < 7 /* ES2020 */) {
|
|
89937
90047
|
if (grammarErrorOnNode(node, Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)) {
|
|
89938
90048
|
return true;
|
|
89939
90049
|
}
|
|
@@ -128512,7 +128622,7 @@ function getMatchedIncludeSpec(program, fileName) {
|
|
|
128512
128622
|
const index = findIndex((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => {
|
|
128513
128623
|
if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */)) return false;
|
|
128514
128624
|
const pattern = getPatternFromSpec(includeSpec, basePath, "files");
|
|
128515
|
-
return !!pattern && getRegexFromPattern(`(
|
|
128625
|
+
return !!pattern && getRegexFromPattern(`(?:${pattern})$`, useCaseSensitiveFileNames2).test(fileName);
|
|
128516
128626
|
});
|
|
128517
128627
|
return index !== -1 ? configFile.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[index] : void 0;
|
|
128518
128628
|
}
|
|
@@ -133447,7 +133557,8 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
133447
133557
|
function ensureParameter(p, context) {
|
|
133448
133558
|
return factory.updateParameterDeclaration(
|
|
133449
133559
|
p,
|
|
133450
|
-
|
|
133560
|
+
/*modifiers*/
|
|
133561
|
+
void 0,
|
|
133451
133562
|
reuseNode(context, p.dotDotDotToken),
|
|
133452
133563
|
resolver.serializeNameOfParameter(context, p),
|
|
133453
133564
|
resolver.isOptionalParameter(p) ? factory.createToken(58 /* QuestionToken */) : void 0,
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"All_imports_in_import_declaration_are_unused_6192": "Žádné importy z deklarace importu se nepoužívají.",
|
|
204
204
|
"All_type_parameters_are_unused_6205": "Všechny parametry typů jsou nevyužité.",
|
|
205
205
|
"All_variables_are_unused_6199": "Žádná z proměnných se nepoužívá.",
|
|
206
|
-
"
|
|
206
|
+
"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600": "Povolte, aby se soubory JavaScriptu staly součástí programu. K získání informací o chybách v těchto souborech použít možnost checkJs.",
|
|
207
207
|
"Allow_accessing_UMD_globals_from_modules_6602": "Povolit přístup ke globálním proměnným UMD z modulů",
|
|
208
208
|
"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Povolte výchozí importy z modulů bez výchozího exportu. Nebude to mít vliv na generování kódu, jenom na kontrolu typů.",
|
|
209
209
|
"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Pokud modul nemá výchozí export, povolte import X z Y.",
|
|
@@ -329,6 +329,7 @@
|
|
|
329
329
|
"Call_signature_return_types_0_and_1_are_incompatible_2202": "Návratové typy signatury volání {0} a {1} nejsou kompatibilní.",
|
|
330
330
|
"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Signatura volání s chybějící anotací návratového typu má implicitně návratový typ any.",
|
|
331
331
|
"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Signatury volání bez argumentů mají nekompatibilní návratové typy {0} a {1}.",
|
|
332
|
+
"Call_target_does_not_contain_any_signatures_2346": "Cíl volání neobsahuje žádné signatury.",
|
|
332
333
|
"Can_only_convert_logical_AND_access_chains_95142": "Převést se dají jen logické řetězy přístupu AND.",
|
|
333
334
|
"Can_only_convert_named_export_95164": "Lze převést pouze pojmenovaný export ",
|
|
334
335
|
"Can_only_convert_property_with_modifier_95137": "Převést se dá jenom vlastnost s modifikátorem.",
|
|
@@ -438,7 +439,7 @@
|
|
|
438
439
|
"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Dekorátory tříd se nedají použít se statickým privátním identifikátorem. Zvažte možnost odebrat experimentální dekorátor.",
|
|
439
440
|
"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "Pole třídy „{0}“ definované nadřazenou třídou není v podřízené třídě přístupné přes třídu typu super.",
|
|
440
441
|
"Class_name_cannot_be_0_2414": "Třída nemůže mít název {0}.",
|
|
441
|
-
"
|
|
442
|
+
"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725": "Když se cílí na ES5 a výše s modulem {0}, název třídy nemůže být Object.",
|
|
442
443
|
"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Statická strana třídy {0} nesprávně rozšiřuje statickou stranu základní třídy {1}.",
|
|
443
444
|
"Classes_can_only_extend_a_single_class_1174": "Třídy můžou rozšířit jenom jednu třídu.",
|
|
444
445
|
"Classes_may_not_have_a_field_named_constructor_18006": "Třídy nemůžou mít pole s názvem constructor.",
|