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 79c0551 commit 9cbdc78Copy full SHA for 9cbdc78
typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsType.java
@@ -168,7 +168,7 @@ public static class UnionType extends TsType {
168
public final List<TsType> types;
169
170
public UnionType(List<? extends TsType> types) {
171
- this.types = new ArrayList<TsType>(types);
+ this.types = new ArrayList<TsType>(new LinkedHashSet<TsType>(types));
172
}
173
174
@Override
0 commit comments