Skip to content

Commit 2bb2b09

Browse files
committed
Added a STRATEGY placeholder for the --moduleResolution option
1 parent 2305c68 commit 2bb2b09

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
@@ -2472,6 +2472,10 @@
24722472
"category": "Message",
24732473
"code": 6038
24742474
},
2475+
"STRATEGY": {
2476+
"category": "Message",
2477+
"code": 6039
2478+
},
24752479
"Compilation complete. Watching for file changes.": {
24762480
"category": "Message",
24772481
"code": 6042
@@ -2871,7 +2875,7 @@
28712875
"Element implicitly has an 'any' type because index expression is not of type 'number'.": {
28722876
"category": "Error",
28732877
"code": 7015
2874-
},
2878+
},
28752879
"Index signature of object type implicitly has an 'any' type.": {
28762880
"category": "Error",
28772881
"code": 7017

0 commit comments

Comments
 (0)