typescript 4.4.0-insiders.20210805 → 4.4.3
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/ko/diagnosticMessages.generated.json +2 -2
- package/lib/lib.dom.d.ts +6 -2
- package/lib/protocol.d.ts +2 -6
- package/lib/tsc.js +47 -50
- package/lib/tsserver.js +157 -92
- package/lib/tsserverlibrary.d.ts +3 -7
- package/lib/tsserverlibrary.js +156 -91
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +154 -83
- package/lib/typescriptServices.d.ts +1 -1
- package/lib/typescriptServices.js +154 -83
- package/lib/typingsInstaller.js +56 -58
- package/package.json +2 -2
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
"Disable_checking_for_this_file_90018": "이 파일 확인을 사용하지 않도록 설정",
|
|
520
520
|
"Disable_emitting_comments_6688": "주석 내보내기 사용 안 함",
|
|
521
521
|
"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "JSDoc 주석에 '@internal'이 있는 선언을 내보내지 않도록 설정합니다.",
|
|
522
|
-
"
|
|
522
|
+
"Disable_emitting_files_from_a_compilation_6660": "Disable emitting files from a compilation.",
|
|
523
523
|
"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "형식 검사 오류가 보고되면 파일을 내보내지 않도록 설정합니다.",
|
|
524
524
|
"Disable_erasing_const_enum_declarations_in_generated_code_6682": "생성된 코드에서 'const enum' 선언 지우기 사용 안 함",
|
|
525
525
|
"Disable_error_reporting_for_unreachable_code_6603": "연결할 수 없는 코드에 대한 오류 보고를 사용하지 않습니다.",
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "반복을 위해 규격에 더 맞지만 장황하고 성능이 떨어지는 JavaScript를 내보냅니다.",
|
|
590
590
|
"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "단일 파일 내에서 소스 맵과 함께 소스를 내보냅니다. '--inlineSourceMap' 또는 '--sourceMap'을 설정해야 합니다.",
|
|
591
591
|
"Enable_all_strict_type_checking_options_6180": "엄격한 형식 검사 옵션을 모두 사용하도록 설정합니다.",
|
|
592
|
-
"
|
|
592
|
+
"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "Enable color and formatting in TypeScript's output to make compiler errors easier to read",
|
|
593
593
|
"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "TypeScript 프로젝트를 프로젝트 참조와 함께 사용할 수 있는 제약 조건을 사용합니다.",
|
|
594
594
|
"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "함수에서 명시적으로 반환되지 않은 코드 경로에 대한 오류 보고를 사용합니다.",
|
|
595
595
|
"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "암시된 'any' 형식이 있는 식 및 선언에 대해 보고하는 오류를 사용 설정합니다.",
|
package/lib/lib.dom.d.ts
CHANGED
|
@@ -6400,6 +6400,12 @@ interface HTMLDocument extends Document {
|
|
|
6400
6400
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
6401
6401
|
}
|
|
6402
6402
|
|
|
6403
|
+
/** @deprecated */
|
|
6404
|
+
declare var HTMLDocument: {
|
|
6405
|
+
prototype: HTMLDocument;
|
|
6406
|
+
new(): HTMLDocument;
|
|
6407
|
+
};
|
|
6408
|
+
|
|
6403
6409
|
interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
6404
6410
|
}
|
|
6405
6411
|
|
|
@@ -17201,7 +17207,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
|
|
|
17201
17207
|
|
|
17202
17208
|
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
|
|
17203
17209
|
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
|
|
17204
|
-
HTMLDocument: Document;
|
|
17205
17210
|
/** @deprecated This is a legacy alias of `navigator`. */
|
|
17206
17211
|
readonly clientInformation: Navigator;
|
|
17207
17212
|
/**
|
|
@@ -18266,7 +18271,6 @@ declare var Image: {
|
|
|
18266
18271
|
declare var Option: {
|
|
18267
18272
|
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
|
|
18268
18273
|
};
|
|
18269
|
-
declare var HTMLDocument: Document;
|
|
18270
18274
|
/** @deprecated This is a legacy alias of `navigator`. */
|
|
18271
18275
|
declare var clientInformation: Navigator;
|
|
18272
18276
|
/**
|
package/lib/protocol.d.ts
CHANGED
|
@@ -1954,11 +1954,7 @@ declare namespace ts.server.protocol {
|
|
|
1954
1954
|
interface SignatureHelpResponse extends Response {
|
|
1955
1955
|
body?: SignatureHelpItems;
|
|
1956
1956
|
}
|
|
1957
|
-
|
|
1958
|
-
Type = "Type",
|
|
1959
|
-
Parameter = "Parameter",
|
|
1960
|
-
Enum = "Enum"
|
|
1961
|
-
}
|
|
1957
|
+
type InlayHintKind = "Type" | "Parameter" | "Enum";
|
|
1962
1958
|
interface InlayHintsRequestArgs extends FileRequestArgs {
|
|
1963
1959
|
/**
|
|
1964
1960
|
* Start position of the span.
|
|
@@ -1976,7 +1972,7 @@ declare namespace ts.server.protocol {
|
|
|
1976
1972
|
interface InlayHintItem {
|
|
1977
1973
|
text: string;
|
|
1978
1974
|
position: Location;
|
|
1979
|
-
kind
|
|
1975
|
+
kind: InlayHintKind;
|
|
1980
1976
|
whitespaceBefore?: boolean;
|
|
1981
1977
|
whitespaceAfter?: boolean;
|
|
1982
1978
|
}
|
package/lib/tsc.js
CHANGED
|
@@ -22,7 +22,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
22
22
|
ar[i] = from[i];
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
return to.concat(ar || from);
|
|
25
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
26
|
};
|
|
27
27
|
var __assign = (this && this.__assign) || function () {
|
|
28
28
|
__assign = Object.assign || function(t) {
|
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.4";
|
|
72
|
-
ts.version =
|
|
72
|
+
ts.version = "4.4.3";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
function tryGetNativeMap() {
|
|
@@ -5220,7 +5220,7 @@ var ts;
|
|
|
5220
5220
|
Decorators_are_not_valid_here: diag(1206, ts.DiagnosticCategory.Error, "Decorators_are_not_valid_here_1206", "Decorators are not valid here."),
|
|
5221
5221
|
Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: diag(1207, ts.DiagnosticCategory.Error, "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207", "Decorators cannot be applied to multiple get/set accessors of the same name."),
|
|
5222
5222
|
_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module: diag(1208, ts.DiagnosticCategory.Error, "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208", "'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),
|
|
5223
|
-
|
|
5223
|
+
Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode: diag(1210, ts.DiagnosticCategory.Error, "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210", "Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),
|
|
5224
5224
|
A_class_declaration_without_the_default_modifier_must_have_a_name: diag(1211, ts.DiagnosticCategory.Error, "A_class_declaration_without_the_default_modifier_must_have_a_name_1211", "A class declaration without the 'default' modifier must have a name."),
|
|
5225
5225
|
Identifier_expected_0_is_a_reserved_word_in_strict_mode: diag(1212, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212", "Identifier expected. '{0}' is a reserved word in strict mode."),
|
|
5226
5226
|
Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: diag(1213, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213", "Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),
|
|
@@ -6822,6 +6822,8 @@ var ts;
|
|
|
6822
6822
|
Can_only_convert_named_export: diag(95164, ts.DiagnosticCategory.Message, "Can_only_convert_named_export_95164", "Can only convert named export"),
|
|
6823
6823
|
Add_missing_properties: diag(95165, ts.DiagnosticCategory.Message, "Add_missing_properties_95165", "Add missing properties"),
|
|
6824
6824
|
Add_all_missing_properties: diag(95166, ts.DiagnosticCategory.Message, "Add_all_missing_properties_95166", "Add all missing properties"),
|
|
6825
|
+
Add_missing_attributes: diag(95167, ts.DiagnosticCategory.Message, "Add_missing_attributes_95167", "Add missing attributes"),
|
|
6826
|
+
Add_all_missing_attributes: diag(95168, ts.DiagnosticCategory.Message, "Add_all_missing_attributes_95168", "Add all missing attributes"),
|
|
6825
6827
|
No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, ts.DiagnosticCategory.Error, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
|
|
6826
6828
|
Classes_may_not_have_a_field_named_constructor: diag(18006, ts.DiagnosticCategory.Error, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
|
|
6827
6829
|
JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, ts.DiagnosticCategory.Error, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
|
|
@@ -16437,6 +16439,10 @@ var ts;
|
|
|
16437
16439
|
return false;
|
|
16438
16440
|
}
|
|
16439
16441
|
ts.hasContextSensitiveParameters = hasContextSensitiveParameters;
|
|
16442
|
+
function isInfinityOrNaNString(name) {
|
|
16443
|
+
return name === "Infinity" || name === "-Infinity" || name === "NaN";
|
|
16444
|
+
}
|
|
16445
|
+
ts.isInfinityOrNaNString = isInfinityOrNaNString;
|
|
16440
16446
|
})(ts || (ts = {}));
|
|
16441
16447
|
var ts;
|
|
16442
16448
|
(function (ts) {
|
|
@@ -21920,7 +21926,7 @@ var ts;
|
|
|
21920
21926
|
name: "typescript:spreadArray",
|
|
21921
21927
|
importName: "__spreadArray",
|
|
21922
21928
|
scoped: false,
|
|
21923
|
-
text: "\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || from);\n };"
|
|
21929
|
+
text: "\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"
|
|
21924
21930
|
};
|
|
21925
21931
|
ts.valuesHelper = {
|
|
21926
21932
|
name: "typescript:values",
|
|
@@ -36207,7 +36213,7 @@ var ts;
|
|
|
36207
36213
|
}
|
|
36208
36214
|
function getStrictModeEvalOrArgumentsMessage(node) {
|
|
36209
36215
|
if (ts.getContainingClass(node)) {
|
|
36210
|
-
return ts.Diagnostics.
|
|
36216
|
+
return ts.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;
|
|
36211
36217
|
}
|
|
36212
36218
|
if (file.externalModuleIndicator) {
|
|
36213
36219
|
return ts.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;
|
|
@@ -46665,15 +46671,15 @@ var ts;
|
|
|
46665
46671
|
return property && !(ts.getCheckFlags(property) & 16) ? property : undefined;
|
|
46666
46672
|
}
|
|
46667
46673
|
function getReducedType(type) {
|
|
46668
|
-
if (type.flags & 1048576 && type.objectFlags &
|
|
46674
|
+
if (type.flags & 1048576 && type.objectFlags & 33554432) {
|
|
46669
46675
|
return type.resolvedReducedType || (type.resolvedReducedType = getReducedUnionType(type));
|
|
46670
46676
|
}
|
|
46671
46677
|
else if (type.flags & 2097152) {
|
|
46672
|
-
if (!(type.objectFlags &
|
|
46673
|
-
type.objectFlags |=
|
|
46674
|
-
(ts.some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ?
|
|
46678
|
+
if (!(type.objectFlags & 33554432)) {
|
|
46679
|
+
type.objectFlags |= 33554432 |
|
|
46680
|
+
(ts.some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ? 67108864 : 0);
|
|
46675
46681
|
}
|
|
46676
|
-
return type.objectFlags &
|
|
46682
|
+
return type.objectFlags & 67108864 ? neverType : type;
|
|
46677
46683
|
}
|
|
46678
46684
|
return type;
|
|
46679
46685
|
}
|
|
@@ -46700,7 +46706,7 @@ var ts;
|
|
|
46700
46706
|
return !prop.valueDeclaration && !!(ts.getCheckFlags(prop) & 1024);
|
|
46701
46707
|
}
|
|
46702
46708
|
function elaborateNeverIntersection(errorInfo, type) {
|
|
46703
|
-
if (type.flags & 2097152 && ts.getObjectFlags(type) &
|
|
46709
|
+
if (type.flags & 2097152 && ts.getObjectFlags(type) & 67108864) {
|
|
46704
46710
|
var neverProp = ts.find(getPropertiesOfUnionOrIntersectionType(type), isDiscriminantWithNeverType);
|
|
46705
46711
|
if (neverProp) {
|
|
46706
46712
|
return ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, typeToString(type, undefined, 536870912), symbolToString(neverProp));
|
|
@@ -48372,7 +48378,7 @@ var ts;
|
|
|
48372
48378
|
}
|
|
48373
48379
|
}
|
|
48374
48380
|
var objectFlags = (includes & 468598819 ? 0 : 65536) |
|
|
48375
|
-
(includes & 2097152 ?
|
|
48381
|
+
(includes & 2097152 ? 33554432 : 0);
|
|
48376
48382
|
return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
|
|
48377
48383
|
}
|
|
48378
48384
|
function getUnionOrIntersectionTypePredicate(signatures, kind) {
|
|
@@ -49125,39 +49131,32 @@ var ts;
|
|
|
49125
49131
|
function isPatternLiteralType(type) {
|
|
49126
49132
|
return !!(type.flags & 134217728) && ts.every(type.types, isPatternLiteralPlaceholderType);
|
|
49127
49133
|
}
|
|
49134
|
+
function isGenericType(type) {
|
|
49135
|
+
return !!getGenericObjectFlags(type);
|
|
49136
|
+
}
|
|
49128
49137
|
function isGenericObjectType(type) {
|
|
49138
|
+
return !!(getGenericObjectFlags(type) & 8388608);
|
|
49139
|
+
}
|
|
49140
|
+
function isGenericIndexType(type) {
|
|
49141
|
+
return !!(getGenericObjectFlags(type) & 16777216);
|
|
49142
|
+
}
|
|
49143
|
+
function getGenericObjectFlags(type) {
|
|
49129
49144
|
if (type.flags & 3145728) {
|
|
49130
49145
|
if (!(type.objectFlags & 4194304)) {
|
|
49131
49146
|
type.objectFlags |= 4194304 |
|
|
49132
|
-
|
|
49147
|
+
ts.reduceLeft(type.types, function (flags, t) { return flags | getGenericObjectFlags(t); }, 0);
|
|
49133
49148
|
}
|
|
49134
|
-
return
|
|
49149
|
+
return type.objectFlags & 25165824;
|
|
49135
49150
|
}
|
|
49136
49151
|
if (type.flags & 33554432) {
|
|
49137
49152
|
if (!(type.objectFlags & 4194304)) {
|
|
49138
49153
|
type.objectFlags |= 4194304 |
|
|
49139
|
-
(
|
|
49154
|
+
getGenericObjectFlags(type.substitute) | getGenericObjectFlags(type.baseType);
|
|
49140
49155
|
}
|
|
49141
|
-
return
|
|
49156
|
+
return type.objectFlags & 25165824;
|
|
49142
49157
|
}
|
|
49143
|
-
return
|
|
49144
|
-
|
|
49145
|
-
function isGenericIndexType(type) {
|
|
49146
|
-
if (type.flags & 3145728) {
|
|
49147
|
-
if (!(type.objectFlags & 16777216)) {
|
|
49148
|
-
type.objectFlags |= 16777216 |
|
|
49149
|
-
(ts.some(type.types, isGenericIndexType) ? 33554432 : 0);
|
|
49150
|
-
}
|
|
49151
|
-
return !!(type.objectFlags & 33554432);
|
|
49152
|
-
}
|
|
49153
|
-
if (type.flags & 33554432) {
|
|
49154
|
-
if (!(type.objectFlags & 16777216)) {
|
|
49155
|
-
type.objectFlags |= 16777216 |
|
|
49156
|
-
(isGenericIndexType(type.substitute) || isGenericIndexType(type.baseType) ? 33554432 : 0);
|
|
49157
|
-
}
|
|
49158
|
-
return !!(type.objectFlags & 33554432);
|
|
49159
|
-
}
|
|
49160
|
-
return !!(type.flags & (58982400 | 4194304 | 134217728 | 268435456)) && !isPatternLiteralType(type);
|
|
49158
|
+
return (type.flags & 58982400 || isGenericMappedType(type) || isGenericTupleType(type) ? 8388608 : 0) |
|
|
49159
|
+
(type.flags & (58982400 | 4194304 | 134217728 | 268435456) && !isPatternLiteralType(type) ? 16777216 : 0);
|
|
49161
49160
|
}
|
|
49162
49161
|
function isThisTypeParameter(type) {
|
|
49163
49162
|
return !!(type.flags & 262144 && type.isThisType);
|
|
@@ -49362,7 +49361,7 @@ var ts;
|
|
|
49362
49361
|
while (true) {
|
|
49363
49362
|
var isUnwrapped = isTypicalNondistributiveConditional(root);
|
|
49364
49363
|
var checkType = instantiateType(unwrapNondistributiveConditionalTuple(root, getActualTypeVariable(root.checkType)), mapper);
|
|
49365
|
-
var checkTypeInstantiable =
|
|
49364
|
+
var checkTypeInstantiable = isGenericType(checkType);
|
|
49366
49365
|
var extendsType = instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), mapper);
|
|
49367
49366
|
if (checkType === wildcardType || extendsType === wildcardType) {
|
|
49368
49367
|
return wildcardType;
|
|
@@ -49376,7 +49375,7 @@ var ts;
|
|
|
49376
49375
|
combinedMapper = mapper ? combineTypeMappers(context.mapper, mapper) : context.mapper;
|
|
49377
49376
|
}
|
|
49378
49377
|
var inferredExtendsType = combinedMapper ? instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), combinedMapper) : extendsType;
|
|
49379
|
-
if (!checkTypeInstantiable && !
|
|
49378
|
+
if (!checkTypeInstantiable && !isGenericType(inferredExtendsType)) {
|
|
49380
49379
|
if (!(inferredExtendsType.flags & 3) && ((checkType.flags & 1 && !isUnwrapped) || !isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType)))) {
|
|
49381
49380
|
if (checkType.flags & 1 && !isUnwrapped) {
|
|
49382
49381
|
(extraTypes || (extraTypes = [])).push(instantiateType(getTypeFromTypeNode(root.node.trueType), combinedMapper || mapper));
|
|
@@ -52859,8 +52858,8 @@ var ts;
|
|
|
52859
52858
|
continue;
|
|
52860
52859
|
}
|
|
52861
52860
|
if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576), keyType)) {
|
|
52862
|
-
var propType =
|
|
52863
|
-
var type = propType.flags & 32768 || keyType === numberType || !(prop.flags & 16777216)
|
|
52861
|
+
var propType = getNonMissingTypeOfSymbol(prop);
|
|
52862
|
+
var type = exactOptionalPropertyTypes || propType.flags & 32768 || keyType === numberType || !(prop.flags & 16777216)
|
|
52864
52863
|
? propType
|
|
52865
52864
|
: getTypeWithFacts(propType, 524288);
|
|
52866
52865
|
var related = isRelatedTo(type, targetInfo.type, reportErrors);
|
|
@@ -56831,14 +56830,11 @@ var ts;
|
|
|
56831
56830
|
function isGenericTypeWithoutNullableConstraint(type) {
|
|
56832
56831
|
return !!(type.flags & 465829888 && !maybeTypeOfKind(getBaseConstraintOrType(type), 98304));
|
|
56833
56832
|
}
|
|
56834
|
-
function containsGenericType(type) {
|
|
56835
|
-
return !!(type.flags & 465829888 || type.flags & 3145728 && ts.some(type.types, containsGenericType));
|
|
56836
|
-
}
|
|
56837
56833
|
function hasNonBindingPatternContextualTypeWithNoGenericTypes(node) {
|
|
56838
56834
|
var contextualType = (ts.isIdentifier(node) || ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node)) &&
|
|
56839
56835
|
!((ts.isJsxOpeningElement(node.parent) || ts.isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) &&
|
|
56840
56836
|
getContextualType(node, 8);
|
|
56841
|
-
return contextualType && !
|
|
56837
|
+
return contextualType && !isGenericType(contextualType);
|
|
56842
56838
|
}
|
|
56843
56839
|
function getNarrowableTypeForReference(type, reference, checkMode) {
|
|
56844
56840
|
var substituteConstraints = !(checkMode && checkMode & 2) &&
|
|
@@ -58351,9 +58347,6 @@ var ts;
|
|
|
58351
58347
|
function isNumericComputedName(name) {
|
|
58352
58348
|
return isTypeAssignableToKind(checkComputedPropertyName(name), 296);
|
|
58353
58349
|
}
|
|
58354
|
-
function isInfinityOrNaNString(name) {
|
|
58355
|
-
return name === "Infinity" || name === "-Infinity" || name === "NaN";
|
|
58356
|
-
}
|
|
58357
58350
|
function isNumericLiteralName(name) {
|
|
58358
58351
|
return (+name).toString() === name;
|
|
58359
58352
|
}
|
|
@@ -67121,8 +67114,8 @@ var ts;
|
|
|
67121
67114
|
error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion)) :
|
|
67122
67115
|
error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName);
|
|
67123
67116
|
}
|
|
67124
|
-
else if (prop && (baseProp === null || baseProp === void 0 ? void 0 : baseProp.
|
|
67125
|
-
var baseHasAbstract = ts.
|
|
67117
|
+
else if (prop && (baseProp === null || baseProp === void 0 ? void 0 : baseProp.declarations) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) {
|
|
67118
|
+
var baseHasAbstract = ts.some(baseProp.declarations, function (d) { return ts.hasAbstractModifier(d); });
|
|
67126
67119
|
if (hasOverride) {
|
|
67127
67120
|
return;
|
|
67128
67121
|
}
|
|
@@ -67461,7 +67454,7 @@ var ts;
|
|
|
67461
67454
|
}
|
|
67462
67455
|
else {
|
|
67463
67456
|
var text = ts.getTextOfPropertyName(member.name);
|
|
67464
|
-
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
|
|
67457
|
+
if (isNumericLiteralName(text) && !ts.isInfinityOrNaNString(text)) {
|
|
67465
67458
|
error(member.name, ts.Diagnostics.An_enum_member_cannot_have_a_numeric_name);
|
|
67466
67459
|
}
|
|
67467
67460
|
}
|
|
@@ -67554,7 +67547,7 @@ var ts;
|
|
|
67554
67547
|
return evaluate(expr.expression);
|
|
67555
67548
|
case 79:
|
|
67556
67549
|
var identifier = expr;
|
|
67557
|
-
if (isInfinityOrNaNString(identifier.escapedText)) {
|
|
67550
|
+
if (ts.isInfinityOrNaNString(identifier.escapedText)) {
|
|
67558
67551
|
return +(identifier.escapedText);
|
|
67559
67552
|
}
|
|
67560
67553
|
return ts.nodeIsMissing(expr) ? 0 : evaluateEnumMember(expr, getSymbolOfNode(member.parent), identifier.escapedText);
|
|
@@ -70432,7 +70425,7 @@ var ts;
|
|
|
70432
70425
|
return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);
|
|
70433
70426
|
}
|
|
70434
70427
|
var type = getTypeFromTypeNode(parameter.type);
|
|
70435
|
-
if (someType(type, function (t) { return !!(t.flags & 8576); }) ||
|
|
70428
|
+
if (someType(type, function (t) { return !!(t.flags & 8576); }) || isGenericType(type)) {
|
|
70436
70429
|
return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);
|
|
70437
70430
|
}
|
|
70438
70431
|
if (!everyType(type, isValidIndexKeyType)) {
|
|
@@ -97533,6 +97526,10 @@ var ts;
|
|
|
97533
97526
|
});
|
|
97534
97527
|
parsedConfigs = undefined;
|
|
97535
97528
|
}
|
|
97529
|
+
if (packageJsonMap) {
|
|
97530
|
+
ts.clearMap(packageJsonMap, ts.closeFileWatcher);
|
|
97531
|
+
packageJsonMap = undefined;
|
|
97532
|
+
}
|
|
97536
97533
|
}
|
|
97537
97534
|
function getCurrentBuilderProgram() {
|
|
97538
97535
|
return builderProgram;
|