Skip to content

Commit 68a0253

Browse files
fix for case when some parent class is excluded
1 parent a650320 commit 68a0253

File tree

1 file changed

+4
-1
lines changed
  • typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler

1 file changed

+4
-1
lines changed

typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/ModelCompiler.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ private TsModel processModel(SymbolTable symbolTable, Model model) {
6969

7070
private TsBeanModel processBean(SymbolTable symbolTable, BeanModel bean) {
7171
final TsType beanType = typeFromJava(symbolTable, bean.getBeanClass());
72-
final TsType parentType = typeFromJava(symbolTable, bean.getParent());
72+
TsType parentType = typeFromJava(symbolTable, bean.getParent());
73+
if (parentType != null && parentType.equals(TsType.Any)) {
74+
parentType = null;
75+
}
7376
final List<TsPropertyModel> properties = new ArrayList<>();
7477
for (PropertyModel property : bean.getProperties()) {
7578
properties.add(processProperty(symbolTable, bean, property));

0 commit comments

Comments
 (0)