Skip to content

Commit 8fa39f3

Browse files
authored
Merge pull request #10834 from krizalys/fix-10833
Added a STRATEGY placeholder for the --moduleResolution option
2 parents 37d6ab3 + 2bb2b09 commit 8fa39f3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ namespace ts {
294294
"classic": ModuleResolutionKind.Classic,
295295
}),
296296
description: Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6,
297+
paramType: Diagnostics.STRATEGY,
297298
},
298299
{
299300
name: "allowUnusedLabels",

src/compiler/diagnosticMessages.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2464,6 +2464,10 @@
24642464
"category": "Message",
24652465
"code": 6038
24662466
},
2467+
"STRATEGY": {
2468+
"category": "Message",
2469+
"code": 6039
2470+
},
24672471
"Compilation complete. Watching for file changes.": {
24682472
"category": "Message",
24692473
"code": 6042
@@ -2863,7 +2867,7 @@
28632867
"Element implicitly has an 'any' type because index expression is not of type 'number'.": {
28642868
"category": "Error",
28652869
"code": 7015
2866-
},
2870+
},
28672871
"Index signature of object type implicitly has an 'any' type.": {
28682872
"category": "Error",
28692873
"code": 7017

0 commit comments

Comments
 (0)