typescript 5.0.0-dev.20230209 → 5.0.0-dev.20230211
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/lib.decorators.d.ts +112 -95
- package/lib/tsc.js +624 -150
- package/lib/tsserver.js +649 -170
- package/lib/tsserverlibrary.d.ts +1 -1
- package/lib/tsserverlibrary.js +649 -170
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +649 -170
- package/lib/typingsInstaller.js +21 -5
- package/package.json +1 -1
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.0";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230211`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -5582,6 +5582,7 @@ var Diagnostics = {
|
|
|
5582
5582
|
To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module: diag(1483, 3 /* Message */, "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483", 'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),
|
|
5583
5583
|
_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1484, 1 /* Error */, "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484", "'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),
|
|
5584
5584
|
_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1485, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485", "'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),
|
|
5585
|
+
Decorator_used_before_export_here: diag(1486, 1 /* Error */, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."),
|
|
5585
5586
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
5586
5587
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
5587
5588
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -6938,7 +6939,7 @@ var Diagnostics = {
|
|
|
6938
6939
|
You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder: diag(8035, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035", "You cannot rename elements that are defined in a 'node_modules' folder."),
|
|
6939
6940
|
You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder: diag(8036, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036", "You cannot rename elements that are defined in another 'node_modules' folder."),
|
|
6940
6941
|
Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files: diag(8037, 1 /* Error */, "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037", "Type satisfaction expressions can only be used in TypeScript files."),
|
|
6941
|
-
|
|
6942
|
+
Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export: diag(8038, 1 /* Error */, "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038", "Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),
|
|
6942
6943
|
Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9005, 1 /* Error */, "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005", "Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),
|
|
6943
6944
|
Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9006, 1 /* Error */, "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006", "Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),
|
|
6944
6945
|
JSX_attributes_must_only_be_assigned_a_non_empty_expression: diag(17e3, 1 /* Error */, "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000", "JSX attributes must only be assigned a non-empty 'expression'."),
|
|
@@ -22068,6 +22069,12 @@ var Parser;
|
|
|
22068
22069
|
case 114 /* VoidKeyword */:
|
|
22069
22070
|
return parseVoidExpression();
|
|
22070
22071
|
case 29 /* LessThanToken */:
|
|
22072
|
+
if (languageVariant === 1 /* JSX */) {
|
|
22073
|
+
return parseJsxElementOrSelfClosingElementOrFragment(
|
|
22074
|
+
/*inExpressionContext*/
|
|
22075
|
+
true
|
|
22076
|
+
);
|
|
22077
|
+
}
|
|
22071
22078
|
return parseTypeAssertion();
|
|
22072
22079
|
case 133 /* AwaitKeyword */:
|
|
22073
22080
|
if (isAwaitExpression2()) {
|
|
@@ -22439,6 +22446,7 @@ var Parser;
|
|
|
22439
22446
|
return finishNode(factory2.createJsxJsxClosingFragment(), pos);
|
|
22440
22447
|
}
|
|
22441
22448
|
function parseTypeAssertion() {
|
|
22449
|
+
Debug.assert(scriptKind === 3 /* TS */, "Type assertions should never be parsed outside of TS; they should either be comparisons or JSX.");
|
|
22442
22450
|
const pos = getNodePos();
|
|
22443
22451
|
parseExpected(29 /* LessThanToken */);
|
|
22444
22452
|
const type = parseType();
|
|
@@ -23789,17 +23797,25 @@ var Parser;
|
|
|
23789
23797
|
function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) {
|
|
23790
23798
|
const pos = getNodePos();
|
|
23791
23799
|
let list;
|
|
23792
|
-
let modifier, hasSeenStaticModifier = false;
|
|
23800
|
+
let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false;
|
|
23801
|
+
if (allowDecorators && token() === 59 /* AtToken */) {
|
|
23802
|
+
while (decorator = tryParseDecorator()) {
|
|
23803
|
+
list = append(list, decorator);
|
|
23804
|
+
}
|
|
23805
|
+
}
|
|
23793
23806
|
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
|
23794
23807
|
if (modifier.kind === 124 /* StaticKeyword */)
|
|
23795
23808
|
hasSeenStaticModifier = true;
|
|
23796
23809
|
list = append(list, modifier);
|
|
23810
|
+
hasLeadingModifier = true;
|
|
23797
23811
|
}
|
|
23798
|
-
if (allowDecorators && token() === 59 /* AtToken */) {
|
|
23799
|
-
let decorator;
|
|
23812
|
+
if (hasLeadingModifier && allowDecorators && token() === 59 /* AtToken */) {
|
|
23800
23813
|
while (decorator = tryParseDecorator()) {
|
|
23801
23814
|
list = append(list, decorator);
|
|
23815
|
+
hasTrailingDecorator = true;
|
|
23802
23816
|
}
|
|
23817
|
+
}
|
|
23818
|
+
if (hasTrailingDecorator) {
|
|
23803
23819
|
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
|
23804
23820
|
if (modifier.kind === 124 /* StaticKeyword */)
|
|
23805
23821
|
hasSeenStaticModifier = 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": "5.0.0-dev.
|
|
5
|
+
"version": "5.0.0-dev.20230211",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|