We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0815e0f commit 8470b9aCopy full SHA for 8470b9a
src/WebApiToTypeScript/Enums/EnumsService.cs
@@ -19,6 +19,10 @@ public TypeScriptBlock CreateEnumsBlock()
19
20
public void AddEnum(TypeDefinition thingType)
21
{
22
+ // todo-balki duplicate enums detection
23
+ // fullname might be the issue here, since we are actually going by final namespaced name
24
+ // but we might want to detect that AFTER adding all unique types so we can complain correctly what conflicted
25
+
26
if (Enums.All(e => e.FullName != thingType.FullName))
27
Enums.Add(thingType);
28
}
0 commit comments