typescript 4.7.0-dev.20220220 → 4.7.0-dev.20220223
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/cs/diagnosticMessages.generated.json +1 -1
- package/lib/de/diagnosticMessages.generated.json +1 -1
- package/lib/es/diagnosticMessages.generated.json +1 -1
- package/lib/fr/diagnosticMessages.generated.json +1 -1
- package/lib/it/diagnosticMessages.generated.json +1 -1
- package/lib/ja/diagnosticMessages.generated.json +1 -1
- package/lib/ko/diagnosticMessages.generated.json +1 -1
- package/lib/pl/diagnosticMessages.generated.json +1 -1
- package/lib/pt-br/diagnosticMessages.generated.json +1 -1
- package/lib/ru/diagnosticMessages.generated.json +1 -1
- package/lib/tr/diagnosticMessages.generated.json +1 -1
- package/lib/tsc.js +4 -1
- package/lib/tsserver.js +13 -2
- package/lib/tsserverlibrary.js +13 -2
- package/lib/typescript.js +13 -2
- package/lib/typescriptServices.js +13 -2
- package/lib/typingsInstaller.js +4 -1
- package/lib/zh-cn/diagnosticMessages.generated.json +1 -1
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -1
- package/package.json +1 -1
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "Deklarace proměnné není v tomto umístění povolená.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Element variadic na pozici {0} ve zdroji neodpovídá elementu na pozici {1} v cíli.",
|
|
1633
1633
|
"Version_0_6029": "Verze {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Další informace o tomto souboru si můžete přečíst na https://aka.ms/tsconfig",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "MOŽNOSTI SLEDOVÁNÍ",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "Režimy sledování a sestavování",
|
|
1637
1637
|
"Watch_input_files_6005": "Sledovat vstupní soubory",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "Variablendeklaration ist an dieser Stelle nicht zulässig.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Das variadic-Element an Position {0} in der Quelle stimmt nicht mit dem Element an Position {1} im Ziel überein.",
|
|
1633
1633
|
"Version_0_6029": "Version {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Besuchen Sie https://aka.ms/tsconfig, um mehr über diese Datei zu erfahren.",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "ÜBERWACHUNGSOPTIONEN",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "Überwachungs- und Buildmodi",
|
|
1637
1637
|
"Watch_input_files_6005": "Eingabedateien überwachen.",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "No se permite una declaración de variable en esta ubicación.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "El elemento variádico en la posición {0} del origen no coincide con el elemento en la posición {1} del destino.",
|
|
1633
1633
|
"Version_0_6029": "Versión {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Visite https://aka.ms/tsconfig para obtener más información acerca de este archivo",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "OPCIONES DE INSPECCIÓN",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "Modos de compilación e inspección",
|
|
1637
1637
|
"Watch_input_files_6005": "Inspeccionar archivos de entrada.",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "Déclaration de variable non autorisée à cet emplacement.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "L'élément variadique situé à la position {0} dans la source ne correspond pas à l'élément situé à la position {1} dans la cible.",
|
|
1633
1633
|
"Version_0_6029": "Version {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Visitez https://aka.ms/tsconfig pour en savoir plus sur ce fichier",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "OPTIONS D’OBSERVATION",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "Modes d’Observation et de Génération",
|
|
1637
1637
|
"Watch_input_files_6005": "Fichiers d'entrée d'espion.",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "Dichiarazione di variabile non consentita in questa posizione.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "L'elemento variadic alla posizione {0} nell'origine non corrisponde all'elemento alla posizione {1} nella destinazione.",
|
|
1633
1633
|
"Version_0_6029": "Versione {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Per altre informazioni su questo file, visitare https://aka.ms/tsconfig",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "OPZIONI DELL'ESPRESSIONE DI CONTROLLO",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "Modalità di espressione di controllo e compilazione",
|
|
1637
1637
|
"Watch_input_files_6005": "Controlla i file di input.",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "変数の宣言はこの場所では許可されていません。",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "ソースの位置 {0} にある可変個引数要素は、ターゲットの位置 {1} にある要素と一致しません。",
|
|
1633
1633
|
"Version_0_6029": "バージョン {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "このファイルの詳細については、https://aka.ms/tsconfig をご覧ください",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "ウォッチ オプション",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "ウォッチ モードとビルド モード",
|
|
1637
1637
|
"Watch_input_files_6005": "入力ファイルを監視します。",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "이 위치에서는 변수 선언을 사용할 수 없습니다.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "소스의 {0} 위치에 있는 가변 인자 요소가 대상의 {1} 위치에 있는 요소와 일치하지 않습니다.",
|
|
1633
1633
|
"Version_0_6029": "버전 {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "이 파일에 대해 자세히 알아보려면 https://aka.ms/tsconfig을 방문하세요.",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "조사식 옵션",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "시청 및 빌드 모드",
|
|
1637
1637
|
"Watch_input_files_6005": "조사식 입력 파일입니다.",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "Deklaracja zmiennej jest niedozwolona w tej lokalizacji.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Element ze zmienną liczbą argumentów na pozycji {0} w źródle nie jest zgodny z elementem na pozycji {1} w lokalizacji docelowej.",
|
|
1633
1633
|
"Version_0_6029": "Wersja {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Odwiedź https://aka.ms/tsconfig, aby dowiedzieć się więcej o tym pliku",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "OPCJE OBSERWACJI",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "Tryb wyrażeń kontrolnych i kompilowania",
|
|
1637
1637
|
"Watch_input_files_6005": "Obserwuj pliki wejściowe.",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "A declaração de variável não é permitida neste local.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "O elemento variádico na posição {0} na fonte não corresponde ao elemento na posição {1} no destino.",
|
|
1633
1633
|
"Version_0_6029": "Versão {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Visite https://aka.ms/tsconfig para ler mais sobre este arquivo",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "OPÇÕES DE INSPEÇÃO",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "Modos Inspeção e Compilação",
|
|
1637
1637
|
"Watch_input_files_6005": "Observe os arquivos de entrada.",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "Объявление переменной в этом расположении запрещено.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Элемент с переменным числом аргументов в позиции {0} в источнике не соответствует элементу в позиции {1} в целевом объекте.",
|
|
1633
1633
|
"Version_0_6029": "Версия {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Дополнительные сведения об этом файле: https://aka.ms/tsconfig.",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "ПАРАМЕТРЫ ПРОСМОТРА",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "Режимы отслеживания и сборки",
|
|
1637
1637
|
"Watch_input_files_6005": "Просмотр входных файлов.",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "Bu konumda değişken bildirimine izin verilmiyor.",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Kaynaktaki {0} konumunda bulunan değişen sayıda bağımsız değişken içeren öğe, hedefteki {1} konumunda bulunan öğeyle eşleşmiyor.",
|
|
1633
1633
|
"Version_0_6029": "Sürüm {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Bu dosya hakkında daha fazla bilgi için https://aka.ms/tsconfig sayfasını ziyaret edin",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "İZLEME SEÇENEKLERİ",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "İzleme ve Derleme Modları",
|
|
1637
1637
|
"Watch_input_files_6005": "Giriş dosyalarını izleyin.",
|
package/lib/tsc.js
CHANGED
|
@@ -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.7";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220223";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -58577,6 +58577,9 @@ var ts;
|
|
|
58577
58577
|
if (parentType && parentType.flags & 1048576 && !(parent.kind === 163 && isSymbolAssigned(symbol))) {
|
|
58578
58578
|
var pattern = declaration.parent;
|
|
58579
58579
|
var narrowedType = getFlowTypeOfReference(pattern, parentType, parentType, undefined, location.flowNode);
|
|
58580
|
+
if (narrowedType.flags & 131072) {
|
|
58581
|
+
return neverType;
|
|
58582
|
+
}
|
|
58580
58583
|
return getBindingElementTypeFromParentType(declaration, narrowedType);
|
|
58581
58584
|
}
|
|
58582
58585
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220223";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -70124,6 +70124,9 @@ var ts;
|
|
|
70124
70124
|
if (parentType && parentType.flags & 1048576 /* Union */ && !(parent.kind === 163 /* Parameter */ && isSymbolAssigned(symbol))) {
|
|
70125
70125
|
var pattern = declaration.parent;
|
|
70126
70126
|
var narrowedType = getFlowTypeOfReference(pattern, parentType, parentType, /*flowContainer*/ undefined, location.flowNode);
|
|
70127
|
+
if (narrowedType.flags & 131072 /* Never */) {
|
|
70128
|
+
return neverType;
|
|
70129
|
+
}
|
|
70127
70130
|
return getBindingElementTypeFromParentType(declaration, narrowedType);
|
|
70128
70131
|
}
|
|
70129
70132
|
}
|
|
@@ -139443,6 +139446,8 @@ var ts;
|
|
|
139443
139446
|
return spanForArrowFunction(n);
|
|
139444
139447
|
case 207 /* CallExpression */:
|
|
139445
139448
|
return spanForCallExpression(n);
|
|
139449
|
+
case 211 /* ParenthesizedExpression */:
|
|
139450
|
+
return spanForParenthesizedExpression(n);
|
|
139446
139451
|
}
|
|
139447
139452
|
function spanForCallExpression(node) {
|
|
139448
139453
|
if (!node.arguments.length) {
|
|
@@ -139456,7 +139461,7 @@ var ts;
|
|
|
139456
139461
|
return spanBetweenTokens(openToken, closeToken, node, sourceFile, /*autoCollapse*/ false, /*useFullStart*/ true);
|
|
139457
139462
|
}
|
|
139458
139463
|
function spanForArrowFunction(node) {
|
|
139459
|
-
if (ts.isBlock(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {
|
|
139464
|
+
if (ts.isBlock(node.body) || ts.isParenthesizedExpression(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {
|
|
139460
139465
|
return undefined;
|
|
139461
139466
|
}
|
|
139462
139467
|
var textSpan = ts.createTextSpanFromBounds(node.body.getFullStart(), node.body.getEnd());
|
|
@@ -139504,6 +139509,12 @@ var ts;
|
|
|
139504
139509
|
function spanForNodeArray(nodeArray) {
|
|
139505
139510
|
return nodeArray.length ? createOutliningSpan(ts.createTextSpanFromRange(nodeArray), "code" /* Code */) : undefined;
|
|
139506
139511
|
}
|
|
139512
|
+
function spanForParenthesizedExpression(node) {
|
|
139513
|
+
if (ts.positionsAreOnSameLine(node.getStart(), node.getEnd(), sourceFile))
|
|
139514
|
+
return undefined;
|
|
139515
|
+
var textSpan = ts.createTextSpanFromBounds(node.getStart(), node.getEnd());
|
|
139516
|
+
return createOutliningSpan(textSpan, "code" /* Code */, ts.createTextSpanFromNode(node));
|
|
139517
|
+
}
|
|
139507
139518
|
}
|
|
139508
139519
|
function functionSpan(node, body, sourceFile) {
|
|
139509
139520
|
var openToken = tryGetFunctionOpenToken(node, body, sourceFile);
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220223";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -70318,6 +70318,9 @@ var ts;
|
|
|
70318
70318
|
if (parentType && parentType.flags & 1048576 /* Union */ && !(parent.kind === 163 /* Parameter */ && isSymbolAssigned(symbol))) {
|
|
70319
70319
|
var pattern = declaration.parent;
|
|
70320
70320
|
var narrowedType = getFlowTypeOfReference(pattern, parentType, parentType, /*flowContainer*/ undefined, location.flowNode);
|
|
70321
|
+
if (narrowedType.flags & 131072 /* Never */) {
|
|
70322
|
+
return neverType;
|
|
70323
|
+
}
|
|
70321
70324
|
return getBindingElementTypeFromParentType(declaration, narrowedType);
|
|
70322
70325
|
}
|
|
70323
70326
|
}
|
|
@@ -140054,6 +140057,8 @@ var ts;
|
|
|
140054
140057
|
return spanForArrowFunction(n);
|
|
140055
140058
|
case 207 /* CallExpression */:
|
|
140056
140059
|
return spanForCallExpression(n);
|
|
140060
|
+
case 211 /* ParenthesizedExpression */:
|
|
140061
|
+
return spanForParenthesizedExpression(n);
|
|
140057
140062
|
}
|
|
140058
140063
|
function spanForCallExpression(node) {
|
|
140059
140064
|
if (!node.arguments.length) {
|
|
@@ -140067,7 +140072,7 @@ var ts;
|
|
|
140067
140072
|
return spanBetweenTokens(openToken, closeToken, node, sourceFile, /*autoCollapse*/ false, /*useFullStart*/ true);
|
|
140068
140073
|
}
|
|
140069
140074
|
function spanForArrowFunction(node) {
|
|
140070
|
-
if (ts.isBlock(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {
|
|
140075
|
+
if (ts.isBlock(node.body) || ts.isParenthesizedExpression(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {
|
|
140071
140076
|
return undefined;
|
|
140072
140077
|
}
|
|
140073
140078
|
var textSpan = ts.createTextSpanFromBounds(node.body.getFullStart(), node.body.getEnd());
|
|
@@ -140115,6 +140120,12 @@ var ts;
|
|
|
140115
140120
|
function spanForNodeArray(nodeArray) {
|
|
140116
140121
|
return nodeArray.length ? createOutliningSpan(ts.createTextSpanFromRange(nodeArray), "code" /* Code */) : undefined;
|
|
140117
140122
|
}
|
|
140123
|
+
function spanForParenthesizedExpression(node) {
|
|
140124
|
+
if (ts.positionsAreOnSameLine(node.getStart(), node.getEnd(), sourceFile))
|
|
140125
|
+
return undefined;
|
|
140126
|
+
var textSpan = ts.createTextSpanFromBounds(node.getStart(), node.getEnd());
|
|
140127
|
+
return createOutliningSpan(textSpan, "code" /* Code */, ts.createTextSpanFromNode(node));
|
|
140128
|
+
}
|
|
140118
140129
|
}
|
|
140119
140130
|
function functionSpan(node, body, sourceFile) {
|
|
140120
140131
|
var openToken = tryGetFunctionOpenToken(node, body, sourceFile);
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220223";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -70318,6 +70318,9 @@ var ts;
|
|
|
70318
70318
|
if (parentType && parentType.flags & 1048576 /* Union */ && !(parent.kind === 163 /* Parameter */ && isSymbolAssigned(symbol))) {
|
|
70319
70319
|
var pattern = declaration.parent;
|
|
70320
70320
|
var narrowedType = getFlowTypeOfReference(pattern, parentType, parentType, /*flowContainer*/ undefined, location.flowNode);
|
|
70321
|
+
if (narrowedType.flags & 131072 /* Never */) {
|
|
70322
|
+
return neverType;
|
|
70323
|
+
}
|
|
70321
70324
|
return getBindingElementTypeFromParentType(declaration, narrowedType);
|
|
70322
70325
|
}
|
|
70323
70326
|
}
|
|
@@ -140054,6 +140057,8 @@ var ts;
|
|
|
140054
140057
|
return spanForArrowFunction(n);
|
|
140055
140058
|
case 207 /* CallExpression */:
|
|
140056
140059
|
return spanForCallExpression(n);
|
|
140060
|
+
case 211 /* ParenthesizedExpression */:
|
|
140061
|
+
return spanForParenthesizedExpression(n);
|
|
140057
140062
|
}
|
|
140058
140063
|
function spanForCallExpression(node) {
|
|
140059
140064
|
if (!node.arguments.length) {
|
|
@@ -140067,7 +140072,7 @@ var ts;
|
|
|
140067
140072
|
return spanBetweenTokens(openToken, closeToken, node, sourceFile, /*autoCollapse*/ false, /*useFullStart*/ true);
|
|
140068
140073
|
}
|
|
140069
140074
|
function spanForArrowFunction(node) {
|
|
140070
|
-
if (ts.isBlock(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {
|
|
140075
|
+
if (ts.isBlock(node.body) || ts.isParenthesizedExpression(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {
|
|
140071
140076
|
return undefined;
|
|
140072
140077
|
}
|
|
140073
140078
|
var textSpan = ts.createTextSpanFromBounds(node.body.getFullStart(), node.body.getEnd());
|
|
@@ -140115,6 +140120,12 @@ var ts;
|
|
|
140115
140120
|
function spanForNodeArray(nodeArray) {
|
|
140116
140121
|
return nodeArray.length ? createOutliningSpan(ts.createTextSpanFromRange(nodeArray), "code" /* Code */) : undefined;
|
|
140117
140122
|
}
|
|
140123
|
+
function spanForParenthesizedExpression(node) {
|
|
140124
|
+
if (ts.positionsAreOnSameLine(node.getStart(), node.getEnd(), sourceFile))
|
|
140125
|
+
return undefined;
|
|
140126
|
+
var textSpan = ts.createTextSpanFromBounds(node.getStart(), node.getEnd());
|
|
140127
|
+
return createOutliningSpan(textSpan, "code" /* Code */, ts.createTextSpanFromNode(node));
|
|
140128
|
+
}
|
|
140118
140129
|
}
|
|
140119
140130
|
function functionSpan(node, body, sourceFile) {
|
|
140120
140131
|
var openToken = tryGetFunctionOpenToken(node, body, sourceFile);
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220223";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -70318,6 +70318,9 @@ var ts;
|
|
|
70318
70318
|
if (parentType && parentType.flags & 1048576 /* Union */ && !(parent.kind === 163 /* Parameter */ && isSymbolAssigned(symbol))) {
|
|
70319
70319
|
var pattern = declaration.parent;
|
|
70320
70320
|
var narrowedType = getFlowTypeOfReference(pattern, parentType, parentType, /*flowContainer*/ undefined, location.flowNode);
|
|
70321
|
+
if (narrowedType.flags & 131072 /* Never */) {
|
|
70322
|
+
return neverType;
|
|
70323
|
+
}
|
|
70321
70324
|
return getBindingElementTypeFromParentType(declaration, narrowedType);
|
|
70322
70325
|
}
|
|
70323
70326
|
}
|
|
@@ -140054,6 +140057,8 @@ var ts;
|
|
|
140054
140057
|
return spanForArrowFunction(n);
|
|
140055
140058
|
case 207 /* CallExpression */:
|
|
140056
140059
|
return spanForCallExpression(n);
|
|
140060
|
+
case 211 /* ParenthesizedExpression */:
|
|
140061
|
+
return spanForParenthesizedExpression(n);
|
|
140057
140062
|
}
|
|
140058
140063
|
function spanForCallExpression(node) {
|
|
140059
140064
|
if (!node.arguments.length) {
|
|
@@ -140067,7 +140072,7 @@ var ts;
|
|
|
140067
140072
|
return spanBetweenTokens(openToken, closeToken, node, sourceFile, /*autoCollapse*/ false, /*useFullStart*/ true);
|
|
140068
140073
|
}
|
|
140069
140074
|
function spanForArrowFunction(node) {
|
|
140070
|
-
if (ts.isBlock(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {
|
|
140075
|
+
if (ts.isBlock(node.body) || ts.isParenthesizedExpression(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {
|
|
140071
140076
|
return undefined;
|
|
140072
140077
|
}
|
|
140073
140078
|
var textSpan = ts.createTextSpanFromBounds(node.body.getFullStart(), node.body.getEnd());
|
|
@@ -140115,6 +140120,12 @@ var ts;
|
|
|
140115
140120
|
function spanForNodeArray(nodeArray) {
|
|
140116
140121
|
return nodeArray.length ? createOutliningSpan(ts.createTextSpanFromRange(nodeArray), "code" /* Code */) : undefined;
|
|
140117
140122
|
}
|
|
140123
|
+
function spanForParenthesizedExpression(node) {
|
|
140124
|
+
if (ts.positionsAreOnSameLine(node.getStart(), node.getEnd(), sourceFile))
|
|
140125
|
+
return undefined;
|
|
140126
|
+
var textSpan = ts.createTextSpanFromBounds(node.getStart(), node.getEnd());
|
|
140127
|
+
return createOutliningSpan(textSpan, "code" /* Code */, ts.createTextSpanFromNode(node));
|
|
140128
|
+
}
|
|
140118
140129
|
}
|
|
140119
140130
|
function functionSpan(node, body, sourceFile) {
|
|
140120
140131
|
var openToken = tryGetFunctionOpenToken(node, body, sourceFile);
|
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.20220223";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -70113,6 +70113,9 @@ var ts;
|
|
|
70113
70113
|
if (parentType && parentType.flags & 1048576 /* Union */ && !(parent.kind === 163 /* Parameter */ && isSymbolAssigned(symbol))) {
|
|
70114
70114
|
var pattern = declaration.parent;
|
|
70115
70115
|
var narrowedType = getFlowTypeOfReference(pattern, parentType, parentType, /*flowContainer*/ undefined, location.flowNode);
|
|
70116
|
+
if (narrowedType.flags & 131072 /* Never */) {
|
|
70117
|
+
return neverType;
|
|
70118
|
+
}
|
|
70116
70119
|
return getBindingElementTypeFromParentType(declaration, narrowedType);
|
|
70117
70120
|
}
|
|
70118
70121
|
}
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "此位置不允许使用变量声明。",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "源中位置 {0} 的可变元素与目标中位置 {1} 的元素不匹配。",
|
|
1633
1633
|
"Version_0_6029": "版本 {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "请访问 https://aka.ms/tsconfig,了解有关此文件的详细信息",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "监视选项",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "观看和生成模式",
|
|
1637
1637
|
"Watch_input_files_6005": "监视输入文件。",
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
"Variable_declaration_not_allowed_at_this_location_1440": "此位置不允許變數宣告。",
|
|
1632
1632
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "來源中位於 {0} 的可變元素與目標中位於 {1} 的元素不相符。",
|
|
1633
1633
|
"Version_0_6029": "版本 {0}",
|
|
1634
|
-
"
|
|
1634
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "瀏覽 https://aka.ms/tsconfig 以閱讀此檔案的詳細資訊",
|
|
1635
1635
|
"WATCH_OPTIONS_6918": "監看式選項",
|
|
1636
1636
|
"Watch_and_Build_Modes_6250": "觀看及建置模式",
|
|
1637
1637
|
"Watch_input_files_6005": "監看輸入檔。",
|
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.7.0-dev.
|
|
5
|
+
"version": "4.7.0-dev.20220223",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|