typescript 4.9.0-dev.20220907 → 4.9.0-dev.20220908
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/tsc.js +7 -4
- package/lib/tsserver.js +7 -4
- package/lib/tsserverlibrary.js +7 -4
- package/lib/typescript.js +7 -4
- package/lib/typescriptServices.js +7 -4
- package/lib/typingsInstaller.js +7 -4
- package/package.json +1 -1
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.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220908");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -32321,6 +32321,7 @@ var ts;
|
|
|
32321
32321
|
shortName: "h",
|
|
32322
32322
|
type: "boolean",
|
|
32323
32323
|
showInSimplifiedHelpView: true,
|
|
32324
|
+
isCommandLineOnly: true,
|
|
32324
32325
|
category: ts.Diagnostics.Command_line_Options,
|
|
32325
32326
|
description: ts.Diagnostics.Print_this_message,
|
|
32326
32327
|
defaultValueDescription: false,
|
|
@@ -32329,6 +32330,8 @@ var ts;
|
|
|
32329
32330
|
name: "help",
|
|
32330
32331
|
shortName: "?",
|
|
32331
32332
|
type: "boolean",
|
|
32333
|
+
isCommandLineOnly: true,
|
|
32334
|
+
category: ts.Diagnostics.Command_line_Options,
|
|
32332
32335
|
defaultValueDescription: false,
|
|
32333
32336
|
},
|
|
32334
32337
|
{
|
|
@@ -55812,8 +55815,8 @@ var ts;
|
|
|
55812
55815
|
if (!c.root.inferTypeParameters && !isDistributionDependent(c.root)) {
|
|
55813
55816
|
var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
|
|
55814
55817
|
var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
|
|
55815
|
-
if (result = skipTrue ? -1 : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2, false)) {
|
|
55816
|
-
result &= skipFalse ? -1 : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2, false);
|
|
55818
|
+
if (result = skipTrue ? -1 : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2, false, undefined, intersectionState)) {
|
|
55819
|
+
result &= skipFalse ? -1 : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2, false, undefined, intersectionState);
|
|
55817
55820
|
if (result) {
|
|
55818
55821
|
return result;
|
|
55819
55822
|
}
|
|
@@ -76359,7 +76362,7 @@ var ts;
|
|
|
76359
76362
|
return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
76360
76363
|
}
|
|
76361
76364
|
var nodeArguments = node.arguments;
|
|
76362
|
-
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext) {
|
|
76365
|
+
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext && moduleKind !== ts.ModuleKind.Node16) {
|
|
76363
76366
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
76364
76367
|
if (nodeArguments.length > 1) {
|
|
76365
76368
|
var assertionArgument = nodeArguments[1];
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220908");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -39899,6 +39899,7 @@ var ts;
|
|
|
39899
39899
|
shortName: "h",
|
|
39900
39900
|
type: "boolean",
|
|
39901
39901
|
showInSimplifiedHelpView: true,
|
|
39902
|
+
isCommandLineOnly: true,
|
|
39902
39903
|
category: ts.Diagnostics.Command_line_Options,
|
|
39903
39904
|
description: ts.Diagnostics.Print_this_message,
|
|
39904
39905
|
defaultValueDescription: false,
|
|
@@ -39907,6 +39908,8 @@ var ts;
|
|
|
39907
39908
|
name: "help",
|
|
39908
39909
|
shortName: "?",
|
|
39909
39910
|
type: "boolean",
|
|
39911
|
+
isCommandLineOnly: true,
|
|
39912
|
+
category: ts.Diagnostics.Command_line_Options,
|
|
39910
39913
|
defaultValueDescription: false,
|
|
39911
39914
|
},
|
|
39912
39915
|
{
|
|
@@ -66885,8 +66888,8 @@ var ts;
|
|
|
66885
66888
|
var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
|
|
66886
66889
|
var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
|
|
66887
66890
|
// TODO: Find a nice way to include potential conditional type breakdowns in error output, if they seem good (they usually don't)
|
|
66888
|
-
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false)) {
|
|
66889
|
-
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false);
|
|
66891
|
+
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
66892
|
+
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66890
66893
|
if (result) {
|
|
66891
66894
|
return result;
|
|
66892
66895
|
}
|
|
@@ -90602,7 +90605,7 @@ var ts;
|
|
|
90602
90605
|
return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
90603
90606
|
}
|
|
90604
90607
|
var nodeArguments = node.arguments;
|
|
90605
|
-
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext) {
|
|
90608
|
+
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext && moduleKind !== ts.ModuleKind.Node16) {
|
|
90606
90609
|
// We are allowed trailing comma after proposal-import-assertions.
|
|
90607
90610
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
90608
90611
|
if (nodeArguments.length > 1) {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -108,7 +108,7 @@ var ts;
|
|
|
108
108
|
// The following is baselined as a literal template type without intervention
|
|
109
109
|
/** The version of the TypeScript compiler release */
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
111
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
111
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220908");
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -39898,6 +39898,7 @@ var ts;
|
|
|
39898
39898
|
shortName: "h",
|
|
39899
39899
|
type: "boolean",
|
|
39900
39900
|
showInSimplifiedHelpView: true,
|
|
39901
|
+
isCommandLineOnly: true,
|
|
39901
39902
|
category: ts.Diagnostics.Command_line_Options,
|
|
39902
39903
|
description: ts.Diagnostics.Print_this_message,
|
|
39903
39904
|
defaultValueDescription: false,
|
|
@@ -39906,6 +39907,8 @@ var ts;
|
|
|
39906
39907
|
name: "help",
|
|
39907
39908
|
shortName: "?",
|
|
39908
39909
|
type: "boolean",
|
|
39910
|
+
isCommandLineOnly: true,
|
|
39911
|
+
category: ts.Diagnostics.Command_line_Options,
|
|
39909
39912
|
defaultValueDescription: false,
|
|
39910
39913
|
},
|
|
39911
39914
|
{
|
|
@@ -66884,8 +66887,8 @@ var ts;
|
|
|
66884
66887
|
var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
|
|
66885
66888
|
var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
|
|
66886
66889
|
// TODO: Find a nice way to include potential conditional type breakdowns in error output, if they seem good (they usually don't)
|
|
66887
|
-
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false)) {
|
|
66888
|
-
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false);
|
|
66890
|
+
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
66891
|
+
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66889
66892
|
if (result) {
|
|
66890
66893
|
return result;
|
|
66891
66894
|
}
|
|
@@ -90601,7 +90604,7 @@ var ts;
|
|
|
90601
90604
|
return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
90602
90605
|
}
|
|
90603
90606
|
var nodeArguments = node.arguments;
|
|
90604
|
-
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext) {
|
|
90607
|
+
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext && moduleKind !== ts.ModuleKind.Node16) {
|
|
90605
90608
|
// We are allowed trailing comma after proposal-import-assertions.
|
|
90606
90609
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
90607
90610
|
if (nodeArguments.length > 1) {
|
package/lib/typescript.js
CHANGED
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220908");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -39889,6 +39889,7 @@ var ts;
|
|
|
39889
39889
|
shortName: "h",
|
|
39890
39890
|
type: "boolean",
|
|
39891
39891
|
showInSimplifiedHelpView: true,
|
|
39892
|
+
isCommandLineOnly: true,
|
|
39892
39893
|
category: ts.Diagnostics.Command_line_Options,
|
|
39893
39894
|
description: ts.Diagnostics.Print_this_message,
|
|
39894
39895
|
defaultValueDescription: false,
|
|
@@ -39897,6 +39898,8 @@ var ts;
|
|
|
39897
39898
|
name: "help",
|
|
39898
39899
|
shortName: "?",
|
|
39899
39900
|
type: "boolean",
|
|
39901
|
+
isCommandLineOnly: true,
|
|
39902
|
+
category: ts.Diagnostics.Command_line_Options,
|
|
39900
39903
|
defaultValueDescription: false,
|
|
39901
39904
|
},
|
|
39902
39905
|
{
|
|
@@ -66875,8 +66878,8 @@ var ts;
|
|
|
66875
66878
|
var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
|
|
66876
66879
|
var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
|
|
66877
66880
|
// TODO: Find a nice way to include potential conditional type breakdowns in error output, if they seem good (they usually don't)
|
|
66878
|
-
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false)) {
|
|
66879
|
-
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false);
|
|
66881
|
+
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
66882
|
+
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66880
66883
|
if (result) {
|
|
66881
66884
|
return result;
|
|
66882
66885
|
}
|
|
@@ -90592,7 +90595,7 @@ var ts;
|
|
|
90592
90595
|
return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
90593
90596
|
}
|
|
90594
90597
|
var nodeArguments = node.arguments;
|
|
90595
|
-
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext) {
|
|
90598
|
+
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext && moduleKind !== ts.ModuleKind.Node16) {
|
|
90596
90599
|
// We are allowed trailing comma after proposal-import-assertions.
|
|
90597
90600
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
90598
90601
|
if (nodeArguments.length > 1) {
|
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220908");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -39889,6 +39889,7 @@ var ts;
|
|
|
39889
39889
|
shortName: "h",
|
|
39890
39890
|
type: "boolean",
|
|
39891
39891
|
showInSimplifiedHelpView: true,
|
|
39892
|
+
isCommandLineOnly: true,
|
|
39892
39893
|
category: ts.Diagnostics.Command_line_Options,
|
|
39893
39894
|
description: ts.Diagnostics.Print_this_message,
|
|
39894
39895
|
defaultValueDescription: false,
|
|
@@ -39897,6 +39898,8 @@ var ts;
|
|
|
39897
39898
|
name: "help",
|
|
39898
39899
|
shortName: "?",
|
|
39899
39900
|
type: "boolean",
|
|
39901
|
+
isCommandLineOnly: true,
|
|
39902
|
+
category: ts.Diagnostics.Command_line_Options,
|
|
39900
39903
|
defaultValueDescription: false,
|
|
39901
39904
|
},
|
|
39902
39905
|
{
|
|
@@ -66875,8 +66878,8 @@ var ts;
|
|
|
66875
66878
|
var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
|
|
66876
66879
|
var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
|
|
66877
66880
|
// TODO: Find a nice way to include potential conditional type breakdowns in error output, if they seem good (they usually don't)
|
|
66878
|
-
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false)) {
|
|
66879
|
-
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false);
|
|
66881
|
+
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
66882
|
+
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66880
66883
|
if (result) {
|
|
66881
66884
|
return result;
|
|
66882
66885
|
}
|
|
@@ -90592,7 +90595,7 @@ var ts;
|
|
|
90592
90595
|
return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
90593
90596
|
}
|
|
90594
90597
|
var nodeArguments = node.arguments;
|
|
90595
|
-
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext) {
|
|
90598
|
+
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext && moduleKind !== ts.ModuleKind.Node16) {
|
|
90596
90599
|
// We are allowed trailing comma after proposal-import-assertions.
|
|
90597
90600
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
90598
90601
|
if (nodeArguments.length > 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 = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
92
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220908");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -39879,6 +39879,7 @@ var ts;
|
|
|
39879
39879
|
shortName: "h",
|
|
39880
39880
|
type: "boolean",
|
|
39881
39881
|
showInSimplifiedHelpView: true,
|
|
39882
|
+
isCommandLineOnly: true,
|
|
39882
39883
|
category: ts.Diagnostics.Command_line_Options,
|
|
39883
39884
|
description: ts.Diagnostics.Print_this_message,
|
|
39884
39885
|
defaultValueDescription: false,
|
|
@@ -39887,6 +39888,8 @@ var ts;
|
|
|
39887
39888
|
name: "help",
|
|
39888
39889
|
shortName: "?",
|
|
39889
39890
|
type: "boolean",
|
|
39891
|
+
isCommandLineOnly: true,
|
|
39892
|
+
category: ts.Diagnostics.Command_line_Options,
|
|
39890
39893
|
defaultValueDescription: false,
|
|
39891
39894
|
},
|
|
39892
39895
|
{
|
|
@@ -66865,8 +66868,8 @@ var ts;
|
|
|
66865
66868
|
var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
|
|
66866
66869
|
var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
|
|
66867
66870
|
// TODO: Find a nice way to include potential conditional type breakdowns in error output, if they seem good (they usually don't)
|
|
66868
|
-
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false)) {
|
|
66869
|
-
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false);
|
|
66871
|
+
if (result = skipTrue ? -1 /* Ternary.True */ : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
66872
|
+
result &= skipFalse ? -1 /* Ternary.True */ : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2 /* RecursionFlags.Target */, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
|
|
66870
66873
|
if (result) {
|
|
66871
66874
|
return result;
|
|
66872
66875
|
}
|
|
@@ -90582,7 +90585,7 @@ var ts;
|
|
|
90582
90585
|
return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
90583
90586
|
}
|
|
90584
90587
|
var nodeArguments = node.arguments;
|
|
90585
|
-
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext) {
|
|
90588
|
+
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext && moduleKind !== ts.ModuleKind.Node16) {
|
|
90586
90589
|
// We are allowed trailing comma after proposal-import-assertions.
|
|
90587
90590
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
90588
90591
|
if (nodeArguments.length > 1) {
|
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.9.0-dev.
|
|
5
|
+
"version": "4.9.0-dev.20220908",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|