typescript 4.8.0-dev.20220517 → 4.8.0-dev.20220520
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/de/diagnosticMessages.generated.json +3 -0
- package/lib/it/diagnosticMessages.generated.json +3 -0
- package/lib/pl/diagnosticMessages.generated.json +3 -0
- package/lib/tr/diagnosticMessages.generated.json +3 -0
- package/lib/tsc.js +11 -8
- package/lib/tsserver.js +505 -338
- package/lib/tsserverlibrary.js +505 -338
- package/lib/typescript.js +263 -195
- package/lib/typescriptServices.js +263 -195
- package/lib/typingsInstaller.js +11 -8
- package/lib/zh-tw/diagnosticMessages.generated.json +3 -0
- package/package.json +1 -1
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220520";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -2227,6 +2227,7 @@ var ts;
|
|
|
2227
2227
|
startsWith(candidate, prefix) &&
|
|
2228
2228
|
endsWith(candidate, suffix);
|
|
2229
2229
|
}
|
|
2230
|
+
ts.isPatternMatch = isPatternMatch;
|
|
2230
2231
|
function and(f, g) {
|
|
2231
2232
|
return function (arg) { return f(arg) && g(arg); };
|
|
2232
2233
|
}
|
|
@@ -82605,7 +82606,7 @@ var ts;
|
|
|
82605
82606
|
var childSymbol = getSymbolAtLocation(childNode);
|
|
82606
82607
|
if (childSymbol && childSymbol === testedSymbol) {
|
|
82607
82608
|
// If the test was a simple identifier, the above check is sufficient
|
|
82608
|
-
if (ts.isIdentifier(expr)) {
|
|
82609
|
+
if (ts.isIdentifier(expr) || ts.isIdentifier(testedNode) && ts.isBinaryExpression(testedNode.parent)) {
|
|
82609
82610
|
return true;
|
|
82610
82611
|
}
|
|
82611
82612
|
// Otherwise we need to ensure the symbol is called on the same target
|
|
@@ -115819,7 +115820,7 @@ var ts;
|
|
|
115819
115820
|
};
|
|
115820
115821
|
}
|
|
115821
115822
|
// directoryExists
|
|
115822
|
-
if (originalDirectoryExists
|
|
115823
|
+
if (originalDirectoryExists) {
|
|
115823
115824
|
host.directoryExists = function (directory) {
|
|
115824
115825
|
var key = toPath(directory);
|
|
115825
115826
|
var value = directoryExistsCache.get(key);
|
|
@@ -115829,11 +115830,13 @@ var ts;
|
|
|
115829
115830
|
directoryExistsCache.set(key, !!newValue);
|
|
115830
115831
|
return newValue;
|
|
115831
115832
|
};
|
|
115832
|
-
|
|
115833
|
-
|
|
115834
|
-
|
|
115835
|
-
|
|
115836
|
-
|
|
115833
|
+
if (originalCreateDirectory) {
|
|
115834
|
+
host.createDirectory = function (directory) {
|
|
115835
|
+
var key = toPath(directory);
|
|
115836
|
+
directoryExistsCache.delete(key);
|
|
115837
|
+
originalCreateDirectory.call(host, directory);
|
|
115838
|
+
};
|
|
115839
|
+
}
|
|
115837
115840
|
}
|
|
115838
115841
|
return {
|
|
115839
115842
|
originalReadFile: originalReadFile,
|
|
@@ -377,6 +377,8 @@
|
|
|
377
377
|
"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "類別 '{0}' 不當實作類別 '{1}'。您是否要擴充 '{1}',並繼承其成員以成為子類別?",
|
|
378
378
|
"Class_0_incorrectly_implements_interface_1_2420": "類別 '{0}' 不正確地實作介面 '{1}'。",
|
|
379
379
|
"Class_0_used_before_its_declaration_2449": "類別 '{0}' 的位置在其宣告之前。",
|
|
380
|
+
"Class_constructor_may_not_be_a_generator_1360": "類別建構函式可能不是產生器。",
|
|
381
|
+
"Class_constructor_may_not_be_an_accessor_1341": "類別建構函式可能不是存取子。",
|
|
380
382
|
"Class_declaration_cannot_implement_overload_list_for_0_2813": "類別宣告無法為 '{0}' 實作多載清單。",
|
|
381
383
|
"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "類別宣告不能有一個以上的 `@augments` 或 `@extends` 標籤。",
|
|
382
384
|
"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "類別裝飾項目無法與靜態私人識別碼一起使用。請考慮移除實驗性裝飾項目。",
|
|
@@ -1455,6 +1457,7 @@
|
|
|
1455
1457
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "不支援 'with' 陳述式。'with' 區塊中的所有符號都會有類型 'any'。",
|
|
1456
1458
|
"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "此 JSX 標籤的 '{0}' 屬性只能有一個 '{1}' 類型的子系,但提供的子系卻有多個。",
|
|
1457
1459
|
"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "此 JSX 標籤的 '{0}' 屬性需要必須有多個子系的類型 '{1}',但僅提供的子系只有一個。",
|
|
1460
|
+
"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "此條件一律會傳回 '{0}',因為 JavaScript 會依參照而非值比較物件。",
|
|
1458
1461
|
"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367": "因為類型 '{1}' 與 '{2}' 未重疊,所以此條件永遠會傳回 '{0}'。",
|
|
1459
1462
|
"This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "因為此 '{0}' 一律會被定義,所以此條件一律傳回 True。",
|
|
1460
1463
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "因為永遠會定義此函式,所以此條件永遠會傳回 true。您是要改為呼叫該條件嗎?",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.8.0-dev.
|
|
5
|
+
"version": "4.8.0-dev.20220520",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|