typescript 4.8.0-dev.20220729 → 4.8.0-dev.20220801
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 +2 -0
- package/lib/de/diagnosticMessages.generated.json +2 -0
- package/lib/es/diagnosticMessages.generated.json +2 -0
- package/lib/fr/diagnosticMessages.generated.json +2 -0
- package/lib/it/diagnosticMessages.generated.json +2 -0
- package/lib/ja/diagnosticMessages.generated.json +2 -0
- package/lib/ko/diagnosticMessages.generated.json +2 -0
- package/lib/pl/diagnosticMessages.generated.json +2 -0
- package/lib/pt-br/diagnosticMessages.generated.json +2 -0
- package/lib/ru/diagnosticMessages.generated.json +2 -0
- package/lib/tr/diagnosticMessages.generated.json +2 -0
- package/lib/tsc.js +75 -32
- package/lib/tsserver.js +97 -55
- package/lib/tsserverlibrary.js +97 -55
- package/lib/typescript.js +97 -55
- package/lib/typescriptServices.js +97 -55
- package/lib/typingsInstaller.js +97 -55
- package/lib/zh-cn/diagnosticMessages.generated.json +2 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +2 -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.20220801";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -5702,10 +5702,8 @@ var ts;
|
|
|
5702
5702
|
TransformFlags[TransformFlags["ContainsPossibleTopLevelAwait"] = 67108864] = "ContainsPossibleTopLevelAwait";
|
|
5703
5703
|
TransformFlags[TransformFlags["ContainsLexicalSuper"] = 134217728] = "ContainsLexicalSuper";
|
|
5704
5704
|
TransformFlags[TransformFlags["ContainsUpdateExpressionForIdentifier"] = 268435456] = "ContainsUpdateExpressionForIdentifier";
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
// It is a good reminder of how much room we have left
|
|
5708
|
-
TransformFlags[TransformFlags["HasComputedFlags"] = 536870912] = "HasComputedFlags";
|
|
5705
|
+
TransformFlags[TransformFlags["ContainsPrivateIdentifierInExpression"] = 536870912] = "ContainsPrivateIdentifierInExpression";
|
|
5706
|
+
TransformFlags[TransformFlags["HasComputedFlags"] = -2147483648] = "HasComputedFlags";
|
|
5709
5707
|
// Assertions
|
|
5710
5708
|
// - Bitmasks that are used to assert facts about the syntax of a node and its subtree.
|
|
5711
5709
|
TransformFlags[TransformFlags["AssertTypeScript"] = 1] = "AssertTypeScript";
|
|
@@ -5724,23 +5722,23 @@ var ts;
|
|
|
5724
5722
|
// Scope Exclusions
|
|
5725
5723
|
// - Bitmasks that exclude flags from propagating out of a specific context
|
|
5726
5724
|
// into the subtree flags of their container.
|
|
5727
|
-
TransformFlags[TransformFlags["OuterExpressionExcludes"] =
|
|
5728
|
-
TransformFlags[TransformFlags["PropertyAccessExcludes"] =
|
|
5729
|
-
TransformFlags[TransformFlags["NodeExcludes"] =
|
|
5730
|
-
TransformFlags[TransformFlags["ArrowFunctionExcludes"] =
|
|
5731
|
-
TransformFlags[TransformFlags["FunctionExcludes"] =
|
|
5732
|
-
TransformFlags[TransformFlags["ConstructorExcludes"] =
|
|
5733
|
-
TransformFlags[TransformFlags["MethodOrAccessorExcludes"] =
|
|
5734
|
-
TransformFlags[TransformFlags["PropertyExcludes"] =
|
|
5735
|
-
TransformFlags[TransformFlags["ClassExcludes"] =
|
|
5736
|
-
TransformFlags[TransformFlags["ModuleExcludes"] =
|
|
5725
|
+
TransformFlags[TransformFlags["OuterExpressionExcludes"] = -2147483648] = "OuterExpressionExcludes";
|
|
5726
|
+
TransformFlags[TransformFlags["PropertyAccessExcludes"] = -2147483648] = "PropertyAccessExcludes";
|
|
5727
|
+
TransformFlags[TransformFlags["NodeExcludes"] = -2147483648] = "NodeExcludes";
|
|
5728
|
+
TransformFlags[TransformFlags["ArrowFunctionExcludes"] = -2072174592] = "ArrowFunctionExcludes";
|
|
5729
|
+
TransformFlags[TransformFlags["FunctionExcludes"] = -1937940480] = "FunctionExcludes";
|
|
5730
|
+
TransformFlags[TransformFlags["ConstructorExcludes"] = -1937948672] = "ConstructorExcludes";
|
|
5731
|
+
TransformFlags[TransformFlags["MethodOrAccessorExcludes"] = -2005057536] = "MethodOrAccessorExcludes";
|
|
5732
|
+
TransformFlags[TransformFlags["PropertyExcludes"] = -2013249536] = "PropertyExcludes";
|
|
5733
|
+
TransformFlags[TransformFlags["ClassExcludes"] = -2147344384] = "ClassExcludes";
|
|
5734
|
+
TransformFlags[TransformFlags["ModuleExcludes"] = -1941676032] = "ModuleExcludes";
|
|
5737
5735
|
TransformFlags[TransformFlags["TypeExcludes"] = -2] = "TypeExcludes";
|
|
5738
|
-
TransformFlags[TransformFlags["ObjectLiteralExcludes"] =
|
|
5739
|
-
TransformFlags[TransformFlags["ArrayLiteralOrCallOrNewExcludes"] =
|
|
5740
|
-
TransformFlags[TransformFlags["VariableDeclarationListExcludes"] =
|
|
5741
|
-
TransformFlags[TransformFlags["ParameterExcludes"] =
|
|
5742
|
-
TransformFlags[TransformFlags["CatchClauseExcludes"] =
|
|
5743
|
-
TransformFlags[TransformFlags["BindingPatternExcludes"] =
|
|
5736
|
+
TransformFlags[TransformFlags["ObjectLiteralExcludes"] = -2147278848] = "ObjectLiteralExcludes";
|
|
5737
|
+
TransformFlags[TransformFlags["ArrayLiteralOrCallOrNewExcludes"] = -2147450880] = "ArrayLiteralOrCallOrNewExcludes";
|
|
5738
|
+
TransformFlags[TransformFlags["VariableDeclarationListExcludes"] = -2146893824] = "VariableDeclarationListExcludes";
|
|
5739
|
+
TransformFlags[TransformFlags["ParameterExcludes"] = -2147483648] = "ParameterExcludes";
|
|
5740
|
+
TransformFlags[TransformFlags["CatchClauseExcludes"] = -2147418112] = "CatchClauseExcludes";
|
|
5741
|
+
TransformFlags[TransformFlags["BindingPatternExcludes"] = -2147450880] = "BindingPatternExcludes";
|
|
5744
5742
|
TransformFlags[TransformFlags["ContainsLexicalThisOrSuper"] = 134234112] = "ContainsLexicalThisOrSuper";
|
|
5745
5743
|
// Propagating flags
|
|
5746
5744
|
// - Bitmasks for flags that should propagate from a child
|
|
@@ -24079,7 +24077,7 @@ var ts;
|
|
|
24079
24077
|
propagateChildFlags(node.expression) |
|
|
24080
24078
|
(ts.isIdentifier(node.name) ?
|
|
24081
24079
|
propagateIdentifierNameFlags(node.name) :
|
|
24082
|
-
propagateChildFlags(node.name));
|
|
24080
|
+
propagateChildFlags(node.name) | 536870912 /* ContainsPrivateIdentifierInExpression */);
|
|
24083
24081
|
if (ts.isSuperKeyword(expression)) {
|
|
24084
24082
|
// super method calls require a lexical 'this'
|
|
24085
24083
|
// super method calls require 'super' hoisting in ES2017 and ES2018 async functions and async generators
|
|
@@ -24112,7 +24110,7 @@ var ts;
|
|
|
24112
24110
|
propagateChildFlags(node.questionDotToken) |
|
|
24113
24111
|
(ts.isIdentifier(node.name) ?
|
|
24114
24112
|
propagateIdentifierNameFlags(node.name) :
|
|
24115
|
-
propagateChildFlags(node.name));
|
|
24113
|
+
propagateChildFlags(node.name) | 536870912 /* ContainsPrivateIdentifierInExpression */);
|
|
24116
24114
|
return node;
|
|
24117
24115
|
}
|
|
24118
24116
|
// @api
|
|
@@ -24516,6 +24514,9 @@ var ts;
|
|
|
24516
24514
|
else if (ts.isLogicalOrCoalescingAssignmentOperator(operatorKind)) {
|
|
24517
24515
|
node.transformFlags |= 16 /* ContainsES2021 */;
|
|
24518
24516
|
}
|
|
24517
|
+
if (operatorKind === 101 /* InKeyword */ && ts.isPrivateIdentifier(node.left)) {
|
|
24518
|
+
node.transformFlags |= 536870912 /* ContainsPrivateIdentifierInExpression */;
|
|
24519
|
+
}
|
|
24519
24520
|
return node;
|
|
24520
24521
|
}
|
|
24521
24522
|
function propagateAssignmentPatternFlags(node) {
|
|
@@ -27470,29 +27471,29 @@ var ts;
|
|
|
27470
27471
|
case 208 /* CallExpression */:
|
|
27471
27472
|
case 209 /* NewExpression */:
|
|
27472
27473
|
case 204 /* ArrayLiteralExpression */:
|
|
27473
|
-
return
|
|
27474
|
+
return -2147450880 /* ArrayLiteralOrCallOrNewExcludes */;
|
|
27474
27475
|
case 261 /* ModuleDeclaration */:
|
|
27475
|
-
return
|
|
27476
|
+
return -1941676032 /* ModuleExcludes */;
|
|
27476
27477
|
case 164 /* Parameter */:
|
|
27477
|
-
return
|
|
27478
|
+
return -2147483648 /* ParameterExcludes */;
|
|
27478
27479
|
case 214 /* ArrowFunction */:
|
|
27479
|
-
return
|
|
27480
|
+
return -2072174592 /* ArrowFunctionExcludes */;
|
|
27480
27481
|
case 213 /* FunctionExpression */:
|
|
27481
27482
|
case 256 /* FunctionDeclaration */:
|
|
27482
|
-
return
|
|
27483
|
+
return -1937940480 /* FunctionExcludes */;
|
|
27483
27484
|
case 255 /* VariableDeclarationList */:
|
|
27484
|
-
return
|
|
27485
|
+
return -2146893824 /* VariableDeclarationListExcludes */;
|
|
27485
27486
|
case 257 /* ClassDeclaration */:
|
|
27486
27487
|
case 226 /* ClassExpression */:
|
|
27487
|
-
return
|
|
27488
|
+
return -2147344384 /* ClassExcludes */;
|
|
27488
27489
|
case 171 /* Constructor */:
|
|
27489
|
-
return
|
|
27490
|
+
return -1937948672 /* ConstructorExcludes */;
|
|
27490
27491
|
case 167 /* PropertyDeclaration */:
|
|
27491
|
-
return
|
|
27492
|
+
return -2013249536 /* PropertyExcludes */;
|
|
27492
27493
|
case 169 /* MethodDeclaration */:
|
|
27493
27494
|
case 172 /* GetAccessor */:
|
|
27494
27495
|
case 173 /* SetAccessor */:
|
|
27495
|
-
return
|
|
27496
|
+
return -2005057536 /* MethodOrAccessorExcludes */;
|
|
27496
27497
|
case 130 /* AnyKeyword */:
|
|
27497
27498
|
case 147 /* NumberKeyword */:
|
|
27498
27499
|
case 158 /* BigIntKeyword */:
|
|
@@ -27512,23 +27513,23 @@ var ts;
|
|
|
27512
27513
|
case 259 /* TypeAliasDeclaration */:
|
|
27513
27514
|
return -2 /* TypeExcludes */;
|
|
27514
27515
|
case 205 /* ObjectLiteralExpression */:
|
|
27515
|
-
return
|
|
27516
|
+
return -2147278848 /* ObjectLiteralExcludes */;
|
|
27516
27517
|
case 292 /* CatchClause */:
|
|
27517
|
-
return
|
|
27518
|
+
return -2147418112 /* CatchClauseExcludes */;
|
|
27518
27519
|
case 201 /* ObjectBindingPattern */:
|
|
27519
27520
|
case 202 /* ArrayBindingPattern */:
|
|
27520
|
-
return
|
|
27521
|
+
return -2147450880 /* BindingPatternExcludes */;
|
|
27521
27522
|
case 211 /* TypeAssertionExpression */:
|
|
27522
27523
|
case 229 /* AsExpression */:
|
|
27523
27524
|
case 350 /* PartiallyEmittedExpression */:
|
|
27524
27525
|
case 212 /* ParenthesizedExpression */:
|
|
27525
27526
|
case 106 /* SuperKeyword */:
|
|
27526
|
-
return
|
|
27527
|
+
return -2147483648 /* OuterExpressionExcludes */;
|
|
27527
27528
|
case 206 /* PropertyAccessExpression */:
|
|
27528
27529
|
case 207 /* ElementAccessExpression */:
|
|
27529
|
-
return
|
|
27530
|
+
return -2147483648 /* PropertyAccessExcludes */;
|
|
27530
27531
|
default:
|
|
27531
|
-
return
|
|
27532
|
+
return -2147483648 /* NodeExcludes */;
|
|
27532
27533
|
}
|
|
27533
27534
|
}
|
|
27534
27535
|
ts.getTransformFlagsSubtreeExclusions = getTransformFlagsSubtreeExclusions;
|
|
@@ -80774,7 +80775,7 @@ var ts;
|
|
|
80774
80775
|
error(node.name, ts.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name);
|
|
80775
80776
|
}
|
|
80776
80777
|
}
|
|
80777
|
-
if (node.questionToken && ts.isBindingPattern(node.name) && func.body) {
|
|
80778
|
+
if ((node.questionToken || isJSDocOptionalParameter(node)) && ts.isBindingPattern(node.name) && func.body) {
|
|
80778
80779
|
error(node, ts.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature);
|
|
80779
80780
|
}
|
|
80780
80781
|
if (node.name && ts.isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) {
|
|
@@ -96579,39 +96580,72 @@ var ts;
|
|
|
96579
96580
|
function visitClassDeclaration(node) {
|
|
96580
96581
|
if (!(ts.classOrConstructorParameterIsDecorated(node) || ts.childIsDecorated(node)))
|
|
96581
96582
|
return ts.visitEachChild(node, visitor, context);
|
|
96582
|
-
var
|
|
96583
|
-
|
|
96584
|
-
|
|
96585
|
-
var statements = [classStatement];
|
|
96586
|
-
// Write any decorators of the node.
|
|
96587
|
-
addClassElementDecorationStatements(statements, node, /*isStatic*/ false);
|
|
96588
|
-
addClassElementDecorationStatements(statements, node, /*isStatic*/ true);
|
|
96589
|
-
addConstructorDecorationStatement(statements, node);
|
|
96583
|
+
var statements = ts.hasDecorators(node) ?
|
|
96584
|
+
transformClassDeclarationWithClassDecorators(node, node.name) :
|
|
96585
|
+
transformClassDeclarationWithoutClassDecorators(node, node.name);
|
|
96590
96586
|
if (statements.length > 1) {
|
|
96591
96587
|
// Add a DeclarationMarker as a marker for the end of the declaration
|
|
96592
96588
|
statements.push(factory.createEndOfDeclarationMarker(node));
|
|
96593
|
-
ts.setEmitFlags(
|
|
96589
|
+
ts.setEmitFlags(statements[0], ts.getEmitFlags(statements[0]) | 4194304 /* HasEndOfDeclarationMarker */);
|
|
96594
96590
|
}
|
|
96595
96591
|
return ts.singleOrMany(statements);
|
|
96596
96592
|
}
|
|
96593
|
+
function decoratorContainsPrivateIdentifierInExpression(decorator) {
|
|
96594
|
+
return !!(decorator.transformFlags & 536870912 /* ContainsPrivateIdentifierInExpression */);
|
|
96595
|
+
}
|
|
96596
|
+
function parameterDecoratorsContainPrivateIdentifierInExpression(parameterDecorators) {
|
|
96597
|
+
return ts.some(parameterDecorators, decoratorContainsPrivateIdentifierInExpression);
|
|
96598
|
+
}
|
|
96599
|
+
function hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node) {
|
|
96600
|
+
for (var _i = 0, _a = node.members; _i < _a.length; _i++) {
|
|
96601
|
+
var member = _a[_i];
|
|
96602
|
+
if (!ts.canHaveDecorators(member))
|
|
96603
|
+
continue;
|
|
96604
|
+
var allDecorators = ts.getAllDecoratorsOfClassElement(member, node);
|
|
96605
|
+
if (ts.some(allDecorators === null || allDecorators === void 0 ? void 0 : allDecorators.decorators, decoratorContainsPrivateIdentifierInExpression))
|
|
96606
|
+
return true;
|
|
96607
|
+
if (ts.some(allDecorators === null || allDecorators === void 0 ? void 0 : allDecorators.parameters, parameterDecoratorsContainPrivateIdentifierInExpression))
|
|
96608
|
+
return true;
|
|
96609
|
+
}
|
|
96610
|
+
return false;
|
|
96611
|
+
}
|
|
96612
|
+
function transformDecoratorsOfClassElements(node, members) {
|
|
96613
|
+
var decorationStatements = [];
|
|
96614
|
+
addClassElementDecorationStatements(decorationStatements, node, /*isStatic*/ false);
|
|
96615
|
+
addClassElementDecorationStatements(decorationStatements, node, /*isStatic*/ true);
|
|
96616
|
+
if (hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node)) {
|
|
96617
|
+
members = ts.setTextRange(factory.createNodeArray(__spreadArray(__spreadArray([], members, true), [
|
|
96618
|
+
factory.createClassStaticBlockDeclaration(factory.createBlock(decorationStatements, /*multiLine*/ true))
|
|
96619
|
+
], false)), members);
|
|
96620
|
+
decorationStatements = undefined;
|
|
96621
|
+
}
|
|
96622
|
+
return { decorationStatements: decorationStatements, members: members };
|
|
96623
|
+
}
|
|
96597
96624
|
/**
|
|
96598
96625
|
* Transforms a non-decorated class declaration.
|
|
96599
96626
|
*
|
|
96600
96627
|
* @param node A ClassDeclaration node.
|
|
96601
96628
|
* @param name The name of the class.
|
|
96602
96629
|
*/
|
|
96603
|
-
function
|
|
96630
|
+
function transformClassDeclarationWithoutClassDecorators(node, name) {
|
|
96604
96631
|
// ${modifiers} class ${name} ${heritageClauses} {
|
|
96605
96632
|
// ${members}
|
|
96606
96633
|
// }
|
|
96607
|
-
|
|
96608
|
-
|
|
96634
|
+
var _a;
|
|
96635
|
+
var modifiers = ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier);
|
|
96636
|
+
var heritageClauses = ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause);
|
|
96637
|
+
var members = ts.visitNodes(node.members, visitor, ts.isClassElement);
|
|
96638
|
+
var decorationStatements = [];
|
|
96639
|
+
(_a = transformDecoratorsOfClassElements(node, members), members = _a.members, decorationStatements = _a.decorationStatements);
|
|
96640
|
+
var updated = factory.updateClassDeclaration(node, modifiers, name,
|
|
96641
|
+
/*typeParameters*/ undefined, heritageClauses, members);
|
|
96642
|
+
return ts.addRange([updated], decorationStatements);
|
|
96609
96643
|
}
|
|
96610
96644
|
/**
|
|
96611
96645
|
* Transforms a decorated class declaration and appends the resulting statements. If
|
|
96612
96646
|
* the class requires an alias to avoid issues with double-binding, the alias is returned.
|
|
96613
96647
|
*/
|
|
96614
|
-
function
|
|
96648
|
+
function transformClassDeclarationWithClassDecorators(node, name) {
|
|
96615
96649
|
// When we emit an ES6 class that has a class decorator, we must tailor the
|
|
96616
96650
|
// emit to certain specific cases.
|
|
96617
96651
|
//
|
|
@@ -96697,6 +96731,7 @@ var ts;
|
|
|
96697
96731
|
// | var C_1;
|
|
96698
96732
|
// ---------------------------------------------------------------------
|
|
96699
96733
|
//
|
|
96734
|
+
var _a;
|
|
96700
96735
|
var location = ts.moveRangePastModifiers(node);
|
|
96701
96736
|
var classAlias = getClassAliasIfNeeded(node);
|
|
96702
96737
|
// When we transform to ES5/3 this will be moved inside an IIFE and should reference the name
|
|
@@ -96709,7 +96744,11 @@ var ts;
|
|
|
96709
96744
|
// }
|
|
96710
96745
|
var heritageClauses = ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause);
|
|
96711
96746
|
var members = ts.visitNodes(node.members, visitor, ts.isClassElement);
|
|
96712
|
-
var
|
|
96747
|
+
var decorationStatements = [];
|
|
96748
|
+
(_a = transformDecoratorsOfClassElements(node, members), members = _a.members, decorationStatements = _a.decorationStatements);
|
|
96749
|
+
var classExpression = factory.createClassExpression(
|
|
96750
|
+
/*modifiers*/ undefined, name,
|
|
96751
|
+
/*typeParameters*/ undefined, heritageClauses, members);
|
|
96713
96752
|
ts.setOriginalNode(classExpression, node);
|
|
96714
96753
|
ts.setTextRange(classExpression, location);
|
|
96715
96754
|
// let ${name} = ${classExpression} where name is either declaredName if the class doesn't contain self-reference
|
|
@@ -96723,7 +96762,10 @@ var ts;
|
|
|
96723
96762
|
ts.setOriginalNode(statement, node);
|
|
96724
96763
|
ts.setTextRange(statement, location);
|
|
96725
96764
|
ts.setCommentRange(statement, node);
|
|
96726
|
-
|
|
96765
|
+
var statements = [statement];
|
|
96766
|
+
ts.addRange(statements, decorationStatements);
|
|
96767
|
+
addConstructorDecorationStatement(statements, node);
|
|
96768
|
+
return statements;
|
|
96727
96769
|
}
|
|
96728
96770
|
function visitClassExpression(node) {
|
|
96729
96771
|
// Legacy decorators were not supported on class expressions
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "\"this\" 类型仅在类或接口的非静态成员中可用。",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "已在“{0}”中定义了 \"tsconfig.json\" 文件。",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "元组成员不能既是可选的又是 rest。",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "不能使用负值为元组类型编制索引。",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "乘方表达式的左侧不允许出现类型断言表达式。请考虑用括号将表达式括起。",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "类型文字数据不可具有初始化表达式。",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "仅类型导入可以指定默认导入或命名绑定,但不能同时指定这两者。",
|
|
@@ -775,6 +776,7 @@
|
|
|
775
776
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "应为标识符。\"{0}\" 是保留字,不能在此处使用。",
|
|
776
777
|
"Identifier_expected_1003": "应为标识符。",
|
|
777
778
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "应为标识符。转换 ECMAScript 模块时,\"__esModule\" 保留为导出标记。",
|
|
779
|
+
"Identifier_or_string_literal_expected_1478": "应为标识符或字符串字面量。",
|
|
778
780
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "如果“{0}”包实际上公开此模块,请考虑发送拉取请求以修正“https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}”",
|
|
779
781
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "如果“{0}”包实际公开了此模块,请尝试添加包含 `declare module‘{1}';` 的新声明(.d.ts)文件",
|
|
780
782
|
"Ignore_this_error_message_90019": "忽略此错误信息",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 類型只適用於類別或介面的非靜態成員。",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' 檔案已定義於: '{0}'。",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "元組成員不能同時為選用及待用。",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "元組類型無法以負值編製索引。",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "乘冪運算式左邊不允許類型宣告運算式。請考慮以括弧括住運算式。",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "類型常值屬性不得有初始設定式。",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "僅限類型的匯入可以指定預設匯入或具名繫結,但不能同時指定兩者。",
|
|
@@ -775,6 +776,7 @@
|
|
|
775
776
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "必須為識別碼。'{0}' 為保留字,此處不可使用。",
|
|
776
777
|
"Identifier_expected_1003": "必須是識別碼。",
|
|
777
778
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "必須有識別碼。'__esModule' 已保留為轉換 ECMAScript 模組時匯出的標記。",
|
|
779
|
+
"Identifier_or_string_literal_expected_1478": "需要識別碼或字串常值。",
|
|
778
780
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "如果「{0}」套件實際上公開了此模組,請考慮傳送提取要求以修改 「https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}」",
|
|
779
781
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "如果 '{0}' 套件的確公開了此模組,請嘗試新增包含 `declare module '{1}';` 的宣告 (.d.ts) 檔案。",
|
|
780
782
|
"Ignore_this_error_message_90019": "略過此錯誤訊息",
|
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.20220801",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|