You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+30-14Lines changed: 30 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1472,18 +1472,14 @@
1472
1472
"category": "Message",
1473
1473
"code": 1449
1474
1474
},
1475
-
"Dynamic imports can only accept a module specifier and an optional assertion as arguments": {
1475
+
"Dynamic imports can only accept a module specifier and an optional set of attributes as arguments": {
1476
1476
"category": "Message",
1477
1477
"code": 1450
1478
1478
},
1479
1479
"Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression": {
1480
1480
"category": "Error",
1481
1481
"code": 1451
1482
1482
},
1483
-
"'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.": {
1484
-
"category": "Error",
1485
-
"code": 1452
1486
-
},
1487
1483
"`resolution-mode` should be either `require` or `import`.": {
1488
1484
"category": "Error",
1489
1485
"code": 1453
@@ -1520,6 +1516,14 @@
1520
1516
"category": "Message",
1521
1517
"code": 1461
1522
1518
},
1519
+
"'resolution-mode' is the only valid key for type import attributes.": {
1520
+
"category": "Error",
1521
+
"code": 1463
1522
+
},
1523
+
"Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'.": {
1524
+
"category": "Error",
1525
+
"code": 1464
1526
+
},
1523
1527
1524
1528
"The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.": {
1525
1529
"category": "Error",
@@ -1625,6 +1629,10 @@
1625
1629
"category": "Error",
1626
1630
"code": 1495
1627
1631
},
1632
+
"Identifier, string literal, or number literal expected.": {
1633
+
"category": "Error",
1634
+
"code": 1496
1635
+
},
1628
1636
1629
1637
"The types of '{0}' are incompatible between these types.": {
1630
1638
"category": "Error",
@@ -3579,6 +3587,10 @@
3579
3587
"category": "Error",
3580
3588
"code": 2822
3581
3589
},
3590
+
"Import attributes are only supported when the '--module' option is set to 'esnext' or 'nodenext'.": {
3591
+
"category": "Error",
3592
+
"code": 2823
3593
+
},
3582
3594
"Cannot find namespace '{0}'. Did you mean '{1}'?": {
3583
3595
"category": "Error",
3584
3596
"code": 2833
@@ -3611,10 +3623,6 @@
3611
3623
"category": "Error",
3612
3624
"code": 2840
3613
3625
},
3614
-
"The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.": {
3615
-
"category": "Error",
3616
-
"code": 2841
3617
-
},
3618
3626
"'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?": {
3619
3627
"category": "Error",
3620
3628
"code": 2842
@@ -3667,10 +3675,22 @@
3667
3675
"category": "Error",
3668
3676
"code": 2855
3669
3677
},
3670
-
"Excessive complexity comparing types '{0}' and '{1}'.": {
3678
+
"Import attributes are not allowed on statements that transpile to CommonJS 'require' calls.": {
3671
3679
"category": "Error",
3672
3680
"code": 2856
3673
3681
},
3682
+
"Import attributes cannot be used with type-only imports or exports.": {
3683
+
"category": "Error",
3684
+
"code": 2857
3685
+
},
3686
+
"Import attribute values must be string literal expressions.": {
3687
+
"category": "Error",
3688
+
"code": 2858
3689
+
},
3690
+
"Excessive complexity comparing types '{0}' and '{1}'.": {
3691
+
"category": "Error",
3692
+
"code": 2859
3693
+
},
3674
3694
3675
3695
"Import declaration '{0}' is using private name '{1}'.": {
3676
3696
"category": "Error",
@@ -4104,10 +4124,6 @@
4104
4124
"category": "Error",
4105
4125
"code": 4124
4106
4126
},
4107
-
"'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.": {
4108
-
"category": "Error",
4109
-
"code": 4125
4110
-
},
4111
4127
4112
4128
"The current host does not support the '{0}' option.": {
0 commit comments