Skip to content

Commit ca12cdc

Browse files
Merge pull request microsoft#22138 from uniqueiniquity/conflictingDefinitionsError
Update category for TS4090 to Error
2 parents fa4619c + 96441ab commit ca12cdc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2602,7 +2602,7 @@
26022602
"code": 4083
26032603
},
26042604
"Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict.": {
2605-
"category": "Message",
2605+
"category": "Error",
26062606
"code": 4090
26072607
},
26082608
"Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'.": {

tests/baselines/reference/library-reference-5.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/node_modules/bar/index.d.ts(1,23): message TS4090: Conflicting definitions for 'alpha' found at '/node_modules/bar/node_modules/alpha/index.d.ts' and '/node_modules/foo/node_modules/alpha/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
1+
/node_modules/bar/index.d.ts(1,23): error TS4090: Conflicting definitions for 'alpha' found at '/node_modules/bar/node_modules/alpha/index.d.ts' and '/node_modules/foo/node_modules/alpha/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
22

33

44
==== /src/root.ts (0 errors) ====
@@ -17,7 +17,7 @@
1717
==== /node_modules/bar/index.d.ts (1 errors) ====
1818
/// <reference types="alpha" />
1919
~~~~~
20-
!!! message TS4090: Conflicting definitions for 'alpha' found at '/node_modules/bar/node_modules/alpha/index.d.ts' and '/node_modules/foo/node_modules/alpha/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
20+
!!! error TS4090: Conflicting definitions for 'alpha' found at '/node_modules/bar/node_modules/alpha/index.d.ts' and '/node_modules/foo/node_modules/alpha/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
2121
declare var bar: any;
2222

2323
==== /node_modules/bar/node_modules/alpha/index.d.ts (0 errors) ====

0 commit comments

Comments
 (0)